1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Empty model exception fix

This commit is contained in:
scrawl 2015-05-12 16:50:31 +02:00
parent e8ec4387d6
commit 4036978718

View file

@ -48,7 +48,7 @@ namespace MWClass
assert (ref->mBase != NULL);
// TODO: add option somewhere to enable collision for placeable objects
if ((ref->mBase->mData.mFlags & ESM::Light::Carry) == 0)
if (!model.empty() && (ref->mBase->mData.mFlags & ESM::Light::Carry) == 0)
physics.addObject(ptr, model);
if (!ref->mBase->mSound.empty() && !(ref->mBase->mData.mFlags & ESM::Light::OffDefault))