fix game crashing on ship destruction

This commit is contained in:
Asraelite 2016-04-02 18:43:11 +01:00
parent 7bd1935723
commit f138654ccb
3 changed files with 6 additions and 1 deletions

View file

@ -66,6 +66,8 @@ class World {
body.update(data.slice(i, i + body.interface.size));
} else if (discharge) {
discharge.update(data.slice(i, i + 2));
} else {
return;
}
i += body.interface.size;