by Accensus » Sat May 23, 2020 6:40 pm
Tested on GZDoom g4.4pre-326-g3dfb417f0 x64.
1. give CrashyPistol
2. use CrashyPistol
I assume this isn't an issue only with DepleteAmmo; it just so happened that it crashed on me with that. If I use it in an anonymous function, it errors out properly (i.e. complains about trying to call it with incompatible self-pointer, which isn't gonna happen in DECORATE).
Code: Select all
Actor CrashyPistol : Pistol
{
States
{
Fire:
PISG A 4 DepleteAmmo(false, false, 1)
PISG B 6 A_FirePistol
PISG C 4
PISG B 5 A_ReFire
Goto Ready
}
}
Attached CrashReport.zip.
- Attachments
-
CrashReport.zip
- (37.44 KiB) Downloaded 28 times
Tested on GZDoom g4.4pre-326-g3dfb417f0 x64.
1. give CrashyPistol
2. use CrashyPistol
I assume this isn't an issue only with DepleteAmmo; it just so happened that it crashed on me with that. If I use it in an anonymous function, it errors out properly (i.e. complains about trying to call it with incompatible self-pointer, which isn't gonna happen in DECORATE).
[code]
Actor CrashyPistol : Pistol
{
States
{
Fire:
PISG A 4 DepleteAmmo(false, false, 1)
PISG B 6 A_FirePistol
PISG C 4
PISG B 5 A_ReFire
Goto Ready
}
}
[/code]
Attached CrashReport.zip.