mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-23 05:09:39 +00:00
Add a check for scale value of 0. Should resolve bug #2880.
(cherry picked from commit 819fecd08e
)
This commit is contained in:
parent
26195dc5fe
commit
a19a1dabe2
1 changed files with 3 additions and 0 deletions
|
@ -468,6 +468,9 @@ void CSMTools::ReferenceableCheckStage::creatureCheck (
|
||||||
if (creature.mData.mGold < 0) //It seems that this is for gold in merchant creatures
|
if (creature.mData.mGold < 0) //It seems that this is for gold in merchant creatures
|
||||||
messages.push_back (std::make_pair (id, creature.mId + " has negative gold "));
|
messages.push_back (std::make_pair (id, creature.mId + " has negative gold "));
|
||||||
|
|
||||||
|
if (creature.mScale == 0)
|
||||||
|
messages.push_back (std::make_pair (id, creature.mId + " has zero scale value"));
|
||||||
|
|
||||||
// Check that mentioned scripts exist
|
// Check that mentioned scripts exist
|
||||||
scriptCheck<ESM::Creature>(creature, messages, id.toString());
|
scriptCheck<ESM::Creature>(creature, messages, id.toString());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue