fixed a crashbug when entering ../

This commit is contained in:
Zeno Rogue 2021-02-01 13:42:24 +01:00
parent 5bd7dea231
commit ea5ee7eefd
1 changed files with 1 additions and 0 deletions

View File

@ -413,6 +413,7 @@ cld exp_parser::parse(int prio) {
ld v = ticks * (isize(rest)-1.) / anims::period;
int vf = v;
v -= vf;
if(isize(rest) == 1) rest.push_back(rest[0]);
vf %= (isize(rest)-1);
auto& lft = rest[vf];
auto& rgt = rest[vf+1];