diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/windows/npcdialog.cpp | 2 |
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) { |