Duke3D: Accessing a struct member that requires a second array index while the struct index is invalid causes a segfault
CON code that demonstrates the crash:
var tempA
onevent EVENT_ALTFIRE
set tempA player[30].loogiex 0 //invalid player index
al tempA
endevent
Press altfire ingame and the crash will occur. While the CON code is invalid, this error should be handled gracefully.
Debugging yields no results because the backtrace is completely empty for some reason.
This only occurs with with struct members that require an array index, e.g. loogiex
. Using another member, such as ang
, does not result in the segfault.