Skip to content

Commit 741031c

Browse files
committed
Replaced some broken "inherited::inherited" to direct class name. (fix undefined behavior in compiled code)
Close issue #148
1 parent 5c01f45 commit 741031c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/xrGame/ActorEffector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ BOOL CAnimatorCamEffector::ProcessCam(SCamEffectorInfo& info)
203203

204204
BOOL CAnimatorCamLerpEffector::ProcessCam(SCamEffectorInfo& info)
205205
{
206-
if (!inherited::inherited::ProcessCam(info)) return FALSE;
206+
if (!CEffectorCam::ProcessCam(info)) return FALSE;
207207

208208
const Fmatrix& m = m_objectAnimator->XFORM();
209209
m_objectAnimator->Update(Device.fTimeDelta);

src/xrGame/ai/stalker/ai_stalker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ void CAI_Stalker::shedule_Update(u32 DT)
10661066
}
10671067

10681068
START_PROFILE("stalker/schedule_update/inherited")
1069-
inherited::inherited::shedule_Update(DT);
1069+
CEntityAlive::shedule_Update(DT);
10701070
STOP_PROFILE
10711071

10721072
if (Remote()) {

0 commit comments

Comments
 (0)