mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-23 07:27:07 +00:00
fixed a crashbug when entering ../
This commit is contained in:
parent
5bd7dea231
commit
ea5ee7eefd
1
util.cpp
1
util.cpp
@ -413,6 +413,7 @@ cld exp_parser::parse(int prio) {
|
|||||||
ld v = ticks * (isize(rest)-1.) / anims::period;
|
ld v = ticks * (isize(rest)-1.) / anims::period;
|
||||||
int vf = v;
|
int vf = v;
|
||||||
v -= vf;
|
v -= vf;
|
||||||
|
if(isize(rest) == 1) rest.push_back(rest[0]);
|
||||||
vf %= (isize(rest)-1);
|
vf %= (isize(rest)-1);
|
||||||
auto& lft = rest[vf];
|
auto& lft = rest[vf];
|
||||||
auto& rgt = rest[vf+1];
|
auto& rgt = rest[vf+1];
|
||||||
|
Loading…
Reference in New Issue
Block a user