Page MenuHomeFeedback Tracker

typename::GetVariableValue failing on primtive typedefs
Assigned, NormalPublic

Description

When trying to read a variable value through type name and the source is using a typedef for a primitive value the read fails.

typedef int INT_ALIAS;
class MyWrapper
{
	INT_ALIAS number = 1337;
}
MyWrapper inst();
int number;
PrintFormat("Read: %1 - number: %2", inst.Type().GetVariableValue(inst, 0, number), number);

SCRIPT : Read: 0 - number: 0


As soon as the source switches to no typedef it works

class MyWrapper
{
	int number = 1337;
}

SCRIPT : Read: 1 - number: 1337

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor created this task.Aug 6 2022, 3:53 PM
Geez changed the task status from New to Assigned.Aug 8 2022, 11:37 PM