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:
parent
b061c74598
commit
940fb65e8a
@ -126,7 +126,7 @@ namespace StringUtils
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
std::string::size_type start=0;
|
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);
|
std::string::size_type i=s.find(c, start);
|
||||||
if (i!=std::string::npos)
|
if (i!=std::string::npos)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user