fix game crashing on ship destruction
This commit is contained in:
parent
7bd1935723
commit
f138654ccb
3 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue