From 7196d81679afffafb48f81d37842d822f8ed0865 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Wed, 16 Mar 2011 02:12:49 +0300 Subject: [PATCH] [11254] Really load item text at login. This fix problem when item with text created but not read before logout after logout not show text. In most cases this is mail text copied to inventry. Client cache text in WDB so if open before logout then item "show" text. If you have items created before this fix with like problem you need clear WDB cache for fix text show for item. --- src/game/Item.cpp | 2 ++ src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/Item.cpp b/src/game/Item.cpp index 908c8e253..8bbd5a697 100644 --- a/src/game/Item.cpp +++ b/src/game/Item.cpp @@ -389,6 +389,8 @@ bool Item::LoadFromDB(uint32 guidLow, Field *fields, ObjectGuid ownerGuid) return false; } + SetText(fields[1].GetCppString()); + bool need_save = false; // need explicit save data at load fixes // overwrite possible wrong/corrupted guid diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index f19c6feae..8175a3b7d 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11253" + #define REVISION_NR "11254" #endif // __REVISION_NR_H__