Created
July 17, 2013 16:20
-
-
Save residentkrm/6022115 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/game/Server/Protocol/Handlers/CharacterHandler.cpp b/src/server/game/Server/Protocol/Handlers/CharacterHandler.cpp | |
index 84c8fd7..14da368 100644 | |
--- a/src/server/game/Server/Protocol/Handlers/CharacterHandler.cpp | |
+++ b/src/server/game/Server/Protocol/Handlers/CharacterHandler.cpp | |
@@ -1025,7 +1025,7 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder * holder) | |
bonuses = fields[0].GetUInt32(); | |
int add = fields[1].GetUInt32(); | |
bonuses = bonuses + add; | |
- CharacterDatabase.PQuery("UPDATE `bonus` SET `bonuses` = `bonuses` + %u, `add` = `add` - %u WHERE `account` = %u", add, add, accidd); | |
+ CharacterDatabase.PQuery("UPDATE `bonus` SET `bonuses` = `bonuses` + %u, `add` = `add` - %u WHERE `account` = %u", add, add, accid); | |
} | |
Item * i = pCurrChar->GetItemByEntry(BONUS_TOKEN); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment