1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 09:32:45 +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();
}