summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrius ┼átikonas <[email protected]>2017-06-23 22:23:16 +0100
committerAndrius ┼átikonas <[email protected]>2017-06-23 22:23:16 +0100
commit4b2600ed8be00b1f5d553e8dea9cac441a3d4777 (patch)
tree42002c09d0dba43deae0ed7e05dd2342f724435d
parentd2d3f9b9c61335ad947e04b2862c14fdad8150e3 (diff)
Make sure levelPlayer is not nullptr before calling it.
-rw-r--r--src/kgrgame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kgrgame.cpp b/src/kgrgame.cpp
index ad3a456..e3d40d2 100644
--- a/src/kgrgame.cpp
+++ b/src/kgrgame.cpp
@@ -1406,7 +1406,7 @@ void KGrGame::kbControl (const int dirn, const bool pressed)
if (editor) {
return;
}
- if (playback) {
+ if (playback && levelPlayer) {
levelPlayer->interruptPlayback(); // Will emit interruptDemo().
return;
}