Codechange: Simplify some CodeQL-flagged trivial switches

This commit is contained in:
Tyler Trahan
2023-03-25 15:40:59 -04:00
parent a15e584e40
commit 066ae6f3fb
5 changed files with 25 additions and 44 deletions

View File

@@ -360,12 +360,9 @@ public:
void OnInvalidateData(int data = 0, bool gui_scope = true) override
{
if (!gui_scope) return;
switch (data) {
case 1:
/* ReInit, "debug" sprite might have changed */
this->ReInit();
break;
}
/* ReInit, "debug" sprite might have changed */
if (data == 1) this->ReInit();
}
};