Reset textbox colors properly

This commit is contained in:
AllyTally authored and Misa Elizabeth Kai committed 2023-03-29 13:48:44 -07:00
1 parent efa1bad449
commit 07e48565ed
1 file changed
+13
+13
View File
@@ -2562,6 +2562,19 @@ void scriptclass::startgamemode(const enum StartMode mode)
}
}
/* Containers which need to be reset before gameplay starts
* ex. before custom levels get loaded */
switch (mode)
{
case Start_EDITORPLAYTESTING:
break;
default:
textbox_colours.clear();
add_default_colours();
break;
}
hardreset();
if (mode == Start_EDITOR)