1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 10:53:51 +00:00

Reset ammo when switching view to avoid warnings spam

This commit is contained in:
Andrei Kortunov 2020-08-28 15:57:11 +04:00
parent 297898182b
commit 47af221f10

View file

@ -363,6 +363,7 @@ void NpcAnimation::setViewMode(NpcAnimation::ViewMode viewMode)
mViewMode = viewMode;
MWBase::Environment::get().getWorld()->scaleObject(mPtr, mPtr.getCellRef().getScale()); // apply race height after view change
mAmmunition.reset();
rebuild();
setRenderBin();
}