summaryrefslogtreecommitdiff
path: root/src/gui/windows/npcdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/npcdialog.cpp')
-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)
{