From cc597ceb752585ebf247dfbad6185d31e57e8ed8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Sep 2014 20:57:17 +0300 Subject: Skip empty lines in npc menu. --- src/gui/windows/npcdialog.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/windows/npcdialog.cpp') 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) { -- cgit v1.2.3-60-g2f50