Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/server/scripts/Commands/cs_npc.cpp b/src/server/scripts/Commands/cs_npc.cpp
- --- a/src/server/scripts/Commands/cs_npc.cpp
- +++ b/src/server/scripts/Commands/cs_npc.cpp
- @@ -118,7 +118,10 @@
- if (team) { teamval = atoi(team); }
- if (teamval < 0) { teamval = 0; }
- - uint32 id = atoi(charID);
- + uint32 id = 0;
- +
- + if(!sscanf(charID, "%d", &id))
- + return false;
- Player *chr = handler->GetSession()->GetPlayer();
- float x = chr->GetPositionX();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement