mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
Merge pull request #1460 from AnyOldName3/invalid-death-count-cleaning
Check death counts are for valid actors before loading them
This commit is contained in:
commit
a560841705
@ -1768,7 +1768,8 @@ namespace MWMechanics
|
|||||||
{
|
{
|
||||||
std::string id = reader.getHString();
|
std::string id = reader.getHString();
|
||||||
int count;
|
int count;
|
||||||
reader.getHNT (count, "COUN");
|
reader.getHNT(count, "COUN");
|
||||||
|
if (MWBase::Environment::get().getWorld()->getStore().find(id))
|
||||||
mDeathCount[id] = count;
|
mDeathCount[id] = count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user