From ee7a9722a906aaf2bfaa6db1220b44e3ce8873c2 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 3 Jan 2019 15:17:50 +0100 Subject: [PATCH] fix an undefined behavior (crash on OSX after separate-area scenes in tutorial) --- system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system.cpp b/system.cpp index 8c928ce5..a3a3ea58 100644 --- a/system.cpp +++ b/system.cpp @@ -1068,8 +1068,8 @@ namespace gamestack { if(shmup::on) shmup::clearMonsters(); shmup::on = gdn.shmup; resetGeometry(); - gd.pop_back(); *current_display = gdn.d; + gd.pop_back(); bfs(); }