Skip to content

Commit

Permalink
Fixed a crash when the level saved in user settings fails to load
Browse files Browse the repository at this point in the history
  • Loading branch information
Cooltomten committed Oct 11, 2023
1 parent ab89c01 commit a39e54d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Volt/Sandbox/src/Sandbox/Sandbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ void Sandbox::OnAttach()
OpenScene(userSettings.sceneSettings.lastOpenScene);
}

if(!myRuntimeScene)
{
NewScene();
}

constexpr int64_t discordAppId = 1108502963447681106;

Volt::DiscordSDK::Init(discordAppId, false);
Expand Down

0 comments on commit a39e54d

Please sign in to comment.