Removed erroneous sq_pop(), in Squirrel3 sq_deleteslot() does always pop the argument...
authorIngo Ruhnke <grumbel@gmail.com>
Thu, 14 Aug 2014 03:04:42 +0000 (05:04 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Thu, 14 Aug 2014 03:04:42 +0000 (05:04 +0200)
src/worldmap/worldmap.cpp

index ba15756..ca70b83 100644 (file)
@@ -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());