mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-23 04:26:31 -04:00
Fix a crash in aipackage.cpp
This commit is contained in:
parent
e74ea56434
commit
bcd8190516
@ -15,7 +15,12 @@ namespace ESM
|
||||
{
|
||||
AIPackage pack;
|
||||
if (esm.retSubName() == AI_CNDT) {
|
||||
mList.back().mCellName = esm.getHString();
|
||||
if (mList.empty())
|
||||
{
|
||||
esm.fail("AIPackge with an AI_CNDT applying to no cell.");
|
||||
} else {
|
||||
mList.back().mCellName = esm.getHString();
|
||||
}
|
||||
} else if (esm.retSubName() == AI_Wander) {
|
||||
pack.mType = AI_Wander;
|
||||
esm.getHExact(&pack.mWander, 14);
|
||||
|
Loading…
x
Reference in New Issue
Block a user