Skip to content

Commit

Permalink
Don't crash when trying to stop inactive script profile timer.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Dec 13, 2015
1 parent b28ce3b commit 3373816
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xrScriptEngine/ScriptEngineScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ struct profile_timer_script

void stop()
{
THROW(m_recurse_mark);
if (!m_recurse_mark)
return;
m_recurse_mark--;
if (m_recurse_mark)
return;
Expand Down

0 comments on commit 3373816

Please sign in to comment.