From 41cc92f73e39cec5dfea6b1164176610cccc7df4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 15 Aug 2015 13:58:32 +0300 Subject: Add strong typed int for item color. --- src/resources/beinginfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/beinginfo.cpp') diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp index f63e65134..1f1033e3c 100644 --- a/src/resources/beinginfo.cpp +++ b/src/resources/beinginfo.cpp @@ -206,12 +206,12 @@ void BeingInfo::setColorsList(const std::string &name) mColors = ColorDB::getColorsList(name); } -std::string BeingInfo::getColor(const int idx) const +std::string BeingInfo::getColor(const ItemColor idx) const { if (!mColors) return std::string(); - const std::map ::const_iterator + const std::map ::const_iterator it = mColors->find(idx); if (it == mColors->end()) return std::string(); -- cgit v1.2.3-70-g09d2