Clean up resetting editor contents and scripts

Contents and scripts should be reset in editorclass::reset(); there's no
reason to reset them again right before you load them from an XML file
in editorclass::load().

Additionally, the resets now consistently use SDL_zeroa() (for contents)
and scriptclass::clearcustom() (for scripts).
This commit is contained in:
Misa
2021-02-12 16:35:22 -08:00
committed by Ethan Lee
parent fe77ada160
commit a113662050
2 changed files with 4 additions and 11 deletions

View File

@@ -35,7 +35,8 @@ scriptclass::scriptclass()
texty = 0;
}
void scriptclass::clearcustom(){
void scriptclass::clearcustom()
{
customscripts.clear();
}