Skip to content

Commit

Permalink
Removed erroneous sq_pop(), in Squirrel3 sq_deleteslot() does always …
Browse files Browse the repository at this point in the history
…pop the argument, even on failure
  • Loading branch information
Grumbel committed Aug 14, 2014
1 parent 883d033 commit 1b5749c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/worldmap/worldmap.cpp
Expand Up @@ -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());
Expand Down

0 comments on commit 1b5749c

Please sign in to comment.