Skip to content

Commit

Permalink
set previousfail to a default to prevent possible crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 19, 2019
1 parent a1dbd45 commit c16a0f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Etterna/Singletons/GameManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,8 @@ GameManager::GameManager()
m_fPreviousRate = 1.f;
m_sModsToReset;
m_vTurnsToReset;
m_iPreviousFail;
m_iPreviousFail = FailType_Immediate; // this should never get called without being set with the player's existing
// option but default to avoid crashing due to a malformed enum just in case
m_bRestartedGameplay;
// Register with Lua.
{
Expand Down

0 comments on commit c16a0f5

Please sign in to comment.