Skip to content

Commit

Permalink
Fixed state table creation issue on loading a savegame
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Aug 14, 2014
1 parent 8c15498 commit ab84ea2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/supertux/savegame.cpp
Expand Up @@ -195,14 +195,8 @@ Savegame::load()
{
sq_pushroottable(vm);
get_table_entry(vm, "state");

scripting::load_squirrel_table(vm, -1, *state);
if(SQ_FAILED(sq_createslot(vm, -3)))
{
sq_pop(vm, 1);
throw std::runtime_error("Couldn't create state table");
}
sq_pop(vm, 1);
sq_pop(vm, 2);
}
}
}
Expand Down

0 comments on commit ab84ea2

Please sign in to comment.