mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Merge branch 'master' into 303
Conflicts: src/game/CharacterHandler.cpp src/game/Pet.cpp src/game/Player.cpp
This commit is contained in:
commit
768fa2d2de
22 changed files with 451 additions and 355 deletions
|
|
@ -6326,7 +6326,8 @@ bool ChatHandler::HandleSendMoneyCommand(const char* args)
|
|||
if (!msgText)
|
||||
return false;
|
||||
|
||||
int32 money = atoi(strtok(NULL, ""));
|
||||
char* money_str = strtok(NULL, "");
|
||||
int32 money = money_str ? atoi(money_str) : 0;
|
||||
if (money <= 0)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue