diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-29 17:24:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-29 17:24:52 +0300 |
commit | fa57505d930970d38b5f1001f2bfac3a9a45795a (patch) | |
tree | 95b6b364a4b6b5c7346254d10dd15d9909c1bf12 /src/gui/textcommandeditor.cpp | |
parent | 71addab362fe436cfc32c77d437df6d662ef1630 (diff) | |
download | manaverse-fa57505d930970d38b5f1001f2bfac3a9a45795a.tar.gz manaverse-fa57505d930970d38b5f1001f2bfac3a9a45795a.tar.bz2 manaverse-fa57505d930970d38b5f1001f2bfac3a9a45795a.tar.xz manaverse-fa57505d930970d38b5f1001f2bfac3a9a45795a.zip |
Fix possible crashes in item amount window and spells editor.
Diffstat (limited to 'src/gui/textcommandeditor.cpp')
-rw-r--r-- | src/gui/textcommandeditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/textcommandeditor.cpp b/src/gui/textcommandeditor.cpp index 8cf9fa398..9d759c4a2 100644 --- a/src/gui/textcommandeditor.cpp +++ b/src/gui/textcommandeditor.cpp @@ -71,7 +71,7 @@ public: if (i->first < 0) continue; - ItemInfo info = (*i->second); + const ItemInfo &info = (*i->second); std::string name = info.getName(); if (name != "unnamed" && !info.getName().empty() && info.getName() != "unnamed") |