Skip to content

Instantly share code, notes, and snippets.

@residentkrm
Created July 17, 2013 16:20
Show Gist options
  • Save residentkrm/6022115 to your computer and use it in GitHub Desktop.
Save residentkrm/6022115 to your computer and use it in GitHub Desktop.
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