File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1287,7 +1287,7 @@ QVariant CSMWorld::CreatureAttributesRefIdAdapter::getNestedData(
1287
1287
1288
1288
if (subColIndex == 0 )
1289
1289
return subRowIndex;
1290
- else if (subColIndex == 1 && subRowIndex > 0 && subRowIndex < ESM::Attribute::Length)
1290
+ else if (subColIndex == 1 && subRowIndex >= 0 && subRowIndex < ESM::Attribute::Length)
1291
1291
return creature.mData .mAttributes [subRowIndex];
1292
1292
return QVariant (); // throw an exception here?
1293
1293
}
@@ -1298,7 +1298,7 @@ void CSMWorld::CreatureAttributesRefIdAdapter::setNestedData(
1298
1298
Record<ESM::Creature>& record
1299
1299
= static_cast <Record<ESM::Creature>&>(data.getRecord (RefIdData::LocalIndex (row, UniversalId::Type_Creature)));
1300
1300
1301
- if (subColIndex == 1 && subRowIndex > 0 && subRowIndex < ESM::Attribute::Length)
1301
+ if (subColIndex == 1 && subRowIndex >= 0 && subRowIndex < ESM::Attribute::Length)
1302
1302
{
1303
1303
ESM::Creature creature = record.get ();
1304
1304
creature.mData .mAttributes [subRowIndex] = value.toInt ();
You can’t perform that action at this time.
0 commit comments