From: Ingo Ruhnke Date: Thu, 14 Aug 2014 03:04:42 +0000 (+0200) Subject: Removed erroneous sq_pop(), in Squirrel3 sq_deleteslot() does always pop the argument... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1b5749c9350111cb94ba38fee4240613c87267a6;p=supertux.git Removed erroneous sq_pop(), in Squirrel3 sq_deleteslot() does always pop the argument, even on failure --- 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());