v0.8.1a: added a safety check to gamescene's destroy function

This commit is contained in:
Evan Debenham 2020-07-02 18:53:02 -04:00
parent 23b9991ec7
commit 626e8e34f0

View File

@ -502,7 +502,7 @@ public class GameScene extends PixelScene {
public void destroy() {
//tell the actor thread to finish, then wait for it to complete any actions it may be doing.
if (actorThread.isAlive()){
if (actorThread != null && actorThread.isAlive()){
synchronized (GameScene.class){
synchronized (actorThread) {
actorThread.interrupt();