Commit 4b2600ed authored by Andrius Štikonas's avatar Andrius Štikonas

Make sure levelPlayer is not nullptr before calling it.

parent d2d3f9b9
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment