mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10388] Make spawntime arg really optional as before for .gobject add
This commit is contained in:
parent
ddd0c4567b
commit
3f83acbf9d
2 changed files with 2 additions and 2 deletions
|
|
@ -1057,7 +1057,7 @@ bool ChatHandler::HandleGameObjectAddCommand(char* args)
|
|||
return false;
|
||||
|
||||
int32 spawntimeSecs;
|
||||
if (!ExtractInt32(&args, spawntimeSecs))
|
||||
if (!ExtractOptInt32(&args, spawntimeSecs, 0))
|
||||
return false;
|
||||
|
||||
const GameObjectInfo *gInfo = ObjectMgr::GetGameObjectInfo(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue