Removed unneeded code, sq_newslot() will override a given slot, a separate sq_deletes...
authorIngo Ruhnke <grumbel@gmail.com>
Thu, 14 Aug 2014 05:18:59 +0000 (07:18 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Thu, 14 Aug 2014 05:18:59 +0000 (07:18 +0200)
src/supertux/savegame.cpp

index 4119a2d..18e80c0 100644 (file)
@@ -256,12 +256,6 @@ Savegame::clear_state_table()
   // delete existing state table, if it exists
   sq_pushroottable(vm);
   {
-    /*sq_pushstring(vm, "state", -1);
-    if(SQ_FAILED(sq_deleteslot(vm, -2, SQFalse)))
-    {
-      sq_pop(vm, 1);
-      }*/
-
     // create a new empty state table
     sq_pushstring(vm, "state", -1);
     sq_newtable(vm);