Fixed bug where pausing then playing crashes physics

This commit is contained in:
Diren D Bharwani 2022-11-18 18:31:07 +08:00
parent b328d1df82
commit 6b5b0387a9
1 changed files with 3 additions and 0 deletions

View File

@ -351,6 +351,9 @@ namespace SHADE
//////////////////////////////// ////////////////////////////////
// Create physics world // Create physics world
if (worldState.world != nullptr)
return onPlayEvent->handle;
worldState.CreateWorld(factory); worldState.CreateWorld(factory);
// Link Collision Listener & Raycaster // Link Collision Listener & Raycaster