Skip to content

Commit

Permalink
fixed gold error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ironbell committed Jul 4, 2016
1 parent 2274580 commit 7c2eab2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/GUI/ProgressLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ ProgressLogEntry* ProgressLogEntry::createItemEntry(const std::string& str, cons
entry->m_text->setString(str);

entry->m_icon->setTexture(g_resourceManager->getTexture(GlobalResource::TEX_ITEMS));
if (itemID.compare("gold") == 0) {
return entry;
}
Item* item = g_resourceManager->getItem(itemID);
if (item == nullptr) {
return entry;
Expand Down

0 comments on commit 7c2eab2

Please sign in to comment.