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/itemamountwindow.cpp | |
parent | 71addab362fe436cfc32c77d437df6d662ef1630 (diff) | |
download | manaplus-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.cpp | 2 |
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") |