Skip to content

Commit

Permalink
[11254] Really load item text at login.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
VladimirMangos committed Mar 15, 2011
1 parent 7ccaff6 commit 70dc076
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/game/Item.cpp
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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__

0 comments on commit 70dc076

Please sign in to comment.