Skip to content

Commit

Permalink
Update playstate.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
UNSTOP4BLE committed Jul 8, 2024
1 parent 58bb524 commit 9670c26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/playstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void PlayStateScreen::update(void)

if (isPlaying)
{
if (events->value.isMember("events"))
if (events != NULL)
updateEvents();

if (app->parser.justStep && !(app->parser.curStep % 16))
Expand Down Expand Up @@ -396,7 +396,7 @@ PlayStateScreen::~PlayStateScreen(void)
app->assetmanager.release(sfx_misses[1]->assetpath.c_str());
app->assetmanager.release(sfx_misses[2]->assetpath.c_str());

if (events->value.isMember("events"))
if (events != NULL)
app->assetmanager.release(events->assetpath.c_str());
}

Expand Down

0 comments on commit 9670c26

Please sign in to comment.