mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-16 16:10:58 +00:00
Merge branch 'hit_target_object' into 'master'
Unbreak targetted spell on objects (#5811) See merge request OpenMW/openmw!569
This commit is contained in:
commit
5382d38b9b
@ -55,7 +55,9 @@ namespace MWPhysics
|
||||
}
|
||||
default:
|
||||
{
|
||||
mProjectile->hit(MWWorld::Ptr(), m_hitPointWorld, m_hitNormalWorld);
|
||||
auto* target = static_cast<PtrHolder*>(result.m_hitCollisionObject->getUserPointer());
|
||||
auto ptr = target ? target->getPtr() : MWWorld::Ptr();
|
||||
mProjectile->hit(ptr, m_hitPointWorld, m_hitNormalWorld);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user