Closed devnexen closed 1 month ago
Thanks @devnexen. I'll fix lines 213 and 903 in hu_stuff.c. Not sure what is happening in states.c though, will look into that further. Might be worth using functions in m_array.h in InitStates()...
@devnexen, could you please confirm these commits resolve this?
It works perfect, just little comment, name1 member is an array.
Reproduced with DOOM 2:
two issues appear :
src/hu_stuff.c lines 213 and 903:
seems the loops are one off, should be :
for (int j = numstates - 1; j >= 0; j--)
src/states.c line 1518:
the game still crashes, seem in there assigning the global to states is not good enough, I did a dynamic (zone) allocation instead and copy the whole array. Then after that the game finally starts. Let me know what you think, hope it helps. Cheers.