Additional reference-constructors for TCastToPtr

This commit is contained in:
Jack Andersen 2017-01-15 07:48:42 -10:00
parent e2c671e9b4
commit 7e720266d7
2 changed files with 4 additions and 4 deletions

View File

@ -529,12 +529,12 @@ bool CStateManager::ApplyLocalDamage(const zeus::CVector3f& vec1, const zeus::CV
float f30 = dt;
CPlayer* player = TCastToPtr<CPlayer>(&actor);
CAi* ai = TCastToPtr<CAi>(&actor);
CPlayer* player = TCastToPtr<CPlayer>(actor);
CAi* ai = TCastToPtr<CAi>(actor);
#if 0
CDestroyableRock* dRock = nullptr;
if (!ai)
TCastToPtr<CDestroyableRock>(&actor);
TCastToPtr<CDestroyableRock>(actor);
#endif
if (player)

View File

@ -42,7 +42,7 @@ rstl::optional_object<zeus::CAABox> CScriptCameraPitchVolume::GetTouchBounds() c
void CScriptCameraPitchVolume::Touch(CActor& act, CStateManager& mgr)
{
CPlayer* pl = TCastToPtr<CPlayer>(&act);
CPlayer* pl = TCastToPtr<CPlayer>(act);
if (!pl)
return;