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) {
if (playback) {
if (playback && levelPlayer) {
levelPlayer->interruptPlayback(); // Will emit interruptDemo().
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