[3.1.0] Crash when action function relies on default vector2
Posted: Fri Jun 16, 2017 1:48 am
Also tried on 2ff492d.
To replicate, give this and fire:
To replicate, give this and fire:
Code: Select all
class badpistol:pistol{
action void a_crashthis(vector2 crashing=(0,0)){
A_Log("This will not appear");
crashing+=vel.xy;
}
states{
fire:
PISG A 0 a_crashthis();
goto super::fire;
}
}