Use Event::Exists() instead of getting it, to see if an event exists

This commit is contained in:
smallmodel committed 2023-11-02 20:14:34 +01:00
1 parent 554e0c7fac
commit 81b711364e
2 files changed
+4 -5

No files matched your search

+1 -1
View File
@@ -3447,7 +3447,7 @@ void ScriptThread::CameraCommand(Event *ev)
}
cmd = ev->GetString(1);
if (Event::FindEventNum(cmd)) {
if (Event::Exists(cmd)) {
e = new ConsoleEvent(cmd);
n = ev->NumArgs();