Code: Select all
class TestInv : Inventory
{
override bool TryPickup(in out Actor toucher)
{
Console.Printf("TestString".CharAt(0));
GoAwayAndDie();
return false;
}
}
Code: Select all
TestInv.TryPickup: Unexpected JIT error: Unknown REGT value passed to EmitPARAM
VM execution aborted: tried to read from address zero. In function parameter "self"
Called from Inventory.CallTryPickup at gzdoom.pk3:zscript/actors/inventory/inventory.zs, line 603
Called from Actor.GiveInventory at gzdoom.pk3:zscript/actors/inventory_util.zs, line 90
Called from PlayerPawn.CheatGive at gzdoom.pk3:zscript/actors/player/player_cheat.zs, line 258
Called from StringStruct.CharAt [Native]
Called from TestInv.TryPickup at zscript.txt:ZSCRIPT, line 5
Tested with GZDoom 4.0.0 and g4.1pre-41-g1090c4b34.