Jump to content

[backported 8074]Wrong SQL typo


Guest mns

Recommended Posts

Mangos [8187]

diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index f6af1cc..97bfa30 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -14854,7 +14854,7 @@ void Player::SaveInventoryAndGoldToDB()

void Player::SaveGoldToDB()
{
-    CharacterDatabase.PExecute("UPDATE money = '%u' WHERE guid = '%u'", GetMoney(), GetGUIDLow());
+    CharacterDatabase.PExecute("UPDATE characters SET money = '%u' WHERE guid = '%u'", GetMoney(), GetGUIDLow());
}

void Player::_SaveActions()

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use