summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-13 20:57:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-13 20:57:17 +0300
commitcc597ceb752585ebf247dfbad6185d31e57e8ed8 (patch)
treebdf70e79e771e0cd3ce57bdb8c721331659dc918
parent9c7c7e1f0ec3c89135d439cc29b2072d30d3d2bb (diff)
downloadmanaverse-cc597ceb752585ebf247dfbad6185d31e57e8ed8.tar.gz
manaverse-cc597ceb752585ebf247dfbad6185d31e57e8ed8.tar.bz2
manaverse-cc597ceb752585ebf247dfbad6185d31e57e8ed8.tar.xz
manaverse-cc597ceb752585ebf247dfbad6185d31e57e8ed8.zip
Skip empty lines in npc menu.
-rw-r--r--src/gui/windows/npcdialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp
index d528e22aa..1b11239da 100644
--- a/src/gui/windows/npcdialog.cpp
+++ b/src/gui/windows/npcdialog.cpp
@@ -527,6 +527,8 @@ void NpcDialog::parseListItems(const std::string &itemString)
const std::string path = paths.getStringValue("guiIcons");
while (getline(iss, tmp, ':'))
{
+ if (tmp.empty())
+ continue;
const size_t pos = tmp.find("|");
if (pos == std::string::npos)
{