diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/subconscious/graphics/GameWindow.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/subconscious/graphics/GameWindow.java b/src/subconscious/graphics/GameWindow.java index f444a6a..eb360f5 100644 --- a/src/subconscious/graphics/GameWindow.java +++ b/src/subconscious/graphics/GameWindow.java @@ -150,9 +150,7 @@ public class GameWindow extends Frame implements WindowListener { this.root.getLayout().removeLayoutComponent(this.scene); this.root.remove(this.scene); - if (this.loadedScenes.empty()) { - throw new IllegalStateException(); - } + assert !this.loadedScenes.empty(); // load the last scene SimpleEntry<Scene, Thread> sceneEntry = this.loadedScenes.pop(); |