Skip to content

Commit

Permalink
Reset obj.customscript in hardreset()
Browse files Browse the repository at this point in the history
This prevents yet another place where stale level data from one level
could have affected another level...
  • Loading branch information
InfoTeddy committed Aug 31, 2021
1 parent fea2010 commit 48cddf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions desktop_version/src/Script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3563,6 +3563,8 @@ void scriptclass::hardreset(void)
}
}

obj.customscript = "";

//Script Stuff
position = 0;
commands.clear();
Expand Down

0 comments on commit 48cddf5

Please sign in to comment.