Bugfix: if an xml attribute for an integer array is an empty string,

an array of length 1 with a 0 would be returned instead of an empty
array.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6529 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-11-14 21:08:40 +00:00
parent b061c74598
commit 940fb65e8a

View File

@ -126,7 +126,7 @@ namespace StringUtils
try
{
std::string::size_type start=0;
while(start!=std::string::npos)
while(start!=std::string::npos && start<s.size())
{
std::string::size_type i=s.find(c, start);
if (i!=std::string::npos)