Core: Use the correct function to convert strings to unsigned longs and unsigned long longs
Fixes wrong data being inserted into the database (i.e explored zones). More info in #13493 Fixes #13493 Thanks to @jackpoz for finding the code issue and @Vavehl for an expectional bug report. Conflicts: src/server/game/Entities/Player/Player.cpp src/server/game/Globals/ObjectMgr.cpp src/server/scripts/Commands/cs_misc.cpp src/server/scripts/Commands/cs_modify.cpp
This commit is contained in:
1 parent
c734743053
commit
24c173f387
15 files changed
+53
-53
No files matched your search
@@ -488,7 +488,7 @@ public:
|
||||
|
||||
static bool HandleDebugSendQuestPartyMsgCommand(ChatHandler* handler, char const* args)
|
||||
{
|
||||
uint32 msg = atol((char*)args);
|
||||
uint32 msg = atoul(args);
|
||||
handler->GetSession()->GetPlayer()->SendPushToPartyResponse(handler->GetSession()->GetPlayer(), msg);
|
||||
return true;
|
||||
}
|
||||
@@ -507,7 +507,7 @@ public:
|
||||
|
||||
static bool HandleDebugSendQuestInvalidMsgCommand(ChatHandler* handler, char const* args)
|
||||
{
|
||||
QuestFailedReason msg = static_cast<QuestFailedReason>(atol((char*)args));
|
||||
QuestFailedReason msg = static_cast<QuestFailedReason>(atoul(args));
|
||||
handler->GetSession()->GetPlayer()->SendCanTakeQuestResponse(msg);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user