Skip to content

Commit

Permalink
Add gmae.old_scene to Lua state
Browse files Browse the repository at this point in the history
  • Loading branch information
pinguin999 committed Nov 18, 2024
1 parent 41738a6 commit fdcd64c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Scene::Scene(const std::string &fileName, const std::shared_ptr<Game> &game) : f
old_scene = (*game->lua_state)["game"]["scene"];
}
(*game->lua_state).script("game.scene = '" + fileName + "'");
(*game->lua_state).script("game.old_scene = '" + old_scene + "'");

if (!(*game->lua_state)["scenes"].valid())
{
Expand Down

0 comments on commit fdcd64c

Please sign in to comment.