Fixed: Invalid comparison of signed value

--HG--
branch : develop
This commit is contained in:
Nimetu 2019-02-28 17:26:51 +02:00
parent ac68a37f1b
commit 2f0a831d52

View file

@ -518,7 +518,7 @@ void CContinentManager::writeTo(xmlNodePtr node) const
std::string title = lm.Title.toUtf8(); std::string title = lm.Title.toUtf8();
for(uint i = 0; i< title.size(); i++) for(uint i = 0; i< title.size(); i++)
{ {
if (title[i] < ' ' && title[i] != '\n' && title[i] != '\t') if (title[i] >= '\0' && title[i] < ' ' && title[i] != '\n' && title[i] != '\t')
{ {
title[i] = '?'; title[i] = '?';
} }