mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-24 07:00:24 +02:00
Use Event::Exists() instead of getting it, to see if an event exists
This commit is contained in:
2 files changed
+4
-5
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user