From fa57505d930970d38b5f1001f2bfac3a9a45795a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 29 Aug 2011 17:24:52 +0300 Subject: Fix possible crashes in item amount window and spells editor. --- src/gui/itemamountwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/itemamountwindow.cpp') 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") -- cgit v1.2.3-70-g09d2