Page MenuHomeFeedback Tracker

Calling super in function generate error - NULL pinter to instance!
New, UrgentPublic

Description

NULL pointer to instance
Class: 'MYCAR'
Entity id:2974447

Function: 'UpdateLights'
Stack trace:
scripts/4_World/entities\vehicles\carscript.c:1089
MYCAR/scripts/4_World/Entities/Vehicles/InheritedCars/MYCAR1.c:1014
scripts/4_World/entities\vehicles\carscript.c:349

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General
Steps To Reproduce

override void UpdateLights(int new_gear = -1)
{

		super.UpdateLights(new_gear); //STRING 1014 !!!
		if (GetGame().IsClient() || !GetGame().IsMultiplayer())
		{
			UpdateInnerLight();
		}

}

Event Timeline

borizz.k created this task.Jul 14 2021, 4:24 PM

Native c++ side function GatGame() returns NULL....

What was it?