test fix
This commit is contained in:
parent
42b0403dc8
commit
917d16151b
@ -121,7 +121,7 @@ bool RPGCharacter::fromString(QString str)
|
|||||||
int nbItems = list[8].toInt(&ok);
|
int nbItems = list[8].toInt(&ok);
|
||||||
if(!ok)
|
if(!ok)
|
||||||
return false;
|
return false;
|
||||||
for(int i=0; i<nbItems; ++i)
|
for(int i=0; i<nbItems && i+9 < list.size; ++i)
|
||||||
inventory.push_back(list[9+i]);
|
inventory.push_back(list[9+i]);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user