summaryrefslogtreecommitdiff
path: root/src/gui/itemamountwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-29 17:24:52 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-29 17:24:52 +0300
commitfa57505d930970d38b5f1001f2bfac3a9a45795a (patch)
tree95b6b364a4b6b5c7346254d10dd15d9909c1bf12 /src/gui/itemamountwindow.cpp
parent71addab362fe436cfc32c77d437df6d662ef1630 (diff)
downloadmanaplus-fa57505d930970d38b5f1001f2bfac3a9a45795a.tar.gz
manaplus-fa57505d930970d38b5f1001f2bfac3a9a45795a.tar.bz2
manaplus-fa57505d930970d38b5f1001f2bfac3a9a45795a.tar.xz
manaplus-fa57505d930970d38b5f1001f2bfac3a9a45795a.zip
Fix possible crashes in item amount window and spells editor.
Diffstat (limited to 'src/gui/itemamountwindow.cpp')
-rw-r--r--src/gui/itemamountwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemamountwindow.cpp b/src/gui/itemamountwindow.cpp
index a3f591634..059f3d785 100644
--- a/src/gui/itemamountwindow.cpp
+++ b/src/gui/itemamountwindow.cpp
@@ -63,7 +63,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")