mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2025-02-19 18:30:56 +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,7 +152,10 @@ function et_InitGame(levelTime, randomSeed, restartMap)
|
|||
end
|
||||
|
||||
function et_ShutdownGame(restartMap)
|
||||
events.trigger("onGameShutdown", (restartMap == 1))
|
||||
-- check whether the module has fully initialized
|
||||
if events then
|
||||
events.trigger("onGameShutdown", (restartMap == 1))
|
||||
end
|
||||
end
|
||||
|
||||
function et_ConsoleCommand(cmdText)
|
||||
|
|
Loading…
Reference in a new issue