mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2025-02-22 03:31:08 +00:00
Fixed reference to uninitialized module (fixes #114)
This commit is contained in:
parent
a5415cf595
commit
cb47d833cb
1 changed files with 4 additions and 1 deletions
|
@ -152,8 +152,11 @@ function et_InitGame(levelTime, randomSeed, restartMap)
|
||||||
end
|
end
|
||||||
|
|
||||||
function et_ShutdownGame(restartMap)
|
function et_ShutdownGame(restartMap)
|
||||||
|
-- check whether the module has fully initialized
|
||||||
|
if events then
|
||||||
events.trigger("onGameShutdown", (restartMap == 1))
|
events.trigger("onGameShutdown", (restartMap == 1))
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function et_ConsoleCommand(cmdText)
|
function et_ConsoleCommand(cmdText)
|
||||||
return events.trigger("onServerCommand", cmdText)
|
return events.trigger("onServerCommand", cmdText)
|
||||||
|
|
Loading…
Reference in a new issue