Jump to content

[11621][Fix] Item savin bug


Guest Janu

Recommended Posts

What bug does the patch fix? What features does the patch add?

Corrected typo which caused huge problems with item saving.

For which repository revision was the patch created?

Compatible with newest revision

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

Haven't seen any

Who has been writing this patch? Please include either forum user names or email addresses.

Me

Problem caused in:

https://github.com/mangos/mangos/commit/846f6943ec5c7b50a07aa244c85c4b34ad1f8344

Fix:

https://github.com/Iov/mangos/commit/e154d7067e532d64e5ed3bd944f2e5b5a2744d95

diff --git a/src/game/Item.cpp b/src/game/Item.cpp
index b5a3307..ca3ea19 100644
--- a/src/game/Item.cpp
+++ b/src/game/Item.cpp
@@ -516,7 +516,7 @@ bool Item::LoadFromDB(uint32 guidLow, Field* fields, ObjectGuid ownerGuid)

        std::ostringstream ss;
        for (uint16 i = 0; i < m_valuesCount; ++i)
-            ss << GetUInt32Value(i) << "";
+            ss << GetUInt32Value(i) << " ";

        stmt.addString(ss);
        stmt.addUInt32(GetOwnerGuid().GetCounter());

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