From 1b5749c9350111cb94ba38fee4240613c87267a6 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Thu, 14 Aug 2014 05:04:42 +0200 Subject: [PATCH] Removed erroneous sq_pop(), in Squirrel3 sq_deleteslot() does always pop the argument, even on failure --- src/worldmap/worldmap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/worldmap/worldmap.cpp b/src/worldmap/worldmap.cpp index ba157567d..ca70b832d 100644 --- a/src/worldmap/worldmap.cpp +++ b/src/worldmap/worldmap.cpp @@ -986,7 +986,8 @@ WorldMap::save_state() sq_pushstring(vm, map_filename.c_str(), map_filename.length()); if(SQ_FAILED(sq_deleteslot(vm, -2, SQFalse))) - sq_pop(vm, 1); + { + } // construct new table for this worldmap sq_pushstring(vm, map_filename.c_str(), map_filename.length()); -- 2.11.0