Skip to content

Commit 75bb414

Browse files
authored
Add default case for SquirrelContext switch (#716)
Add default case for SquirrelContext switch and logs errors so we can catch them if they do ever happen.
1 parent f75aff1 commit 75bb414

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

primedev/mods/modmanager.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,8 @@ auto ModConCommandCallback(const CCommand& command)
601601
case ScriptContext::UI:
602602
ModConCommandCallback_Internal<ScriptContext::UI>(found->Function, command);
603603
break;
604+
default:
605+
spdlog::error("ModConCommandCallback on invalid Context {}", found->Context);
604606
};
605607
}
606608

0 commit comments

Comments
 (0)