Stupid mistake was stupid

develop
Simon Jackson 2010-06-11 00:31:09 +08:00 committed by Petr Mrázek
parent fdd61f399e
commit 38718f4865
1 changed files with 2 additions and 2 deletions

@ -312,8 +312,8 @@ void memory_info::setLevel(const std::string &nLevel,
{ {
uint32_t keyInt = strtol(nLevel.c_str(), NULL, 10); uint32_t keyInt = strtol(nLevel.c_str(), NULL, 10);
if(d->skills.size() <= keyInt) if(d->levels.size() <= keyInt)
d->skills.resize(keyInt+1); d->levels.resize(keyInt+1);
d->levels[keyInt].level = keyInt; d->levels[keyInt].level = keyInt;
d->levels[keyInt].name = nName; d->levels[keyInt].name = nName;