Repository navigation
Conversation
save assumes that there is gd.doors allocated. If there is level without any doors, gd.doors is NULL as no doors were added. Fix this by always having gd.doors allocated when level is created.
|
Prevents: save.c:536:9: runtime error: null pointer passed as argument 2, which is declared to never be null |
|
Thanks for bringing the issue to our attention, although we opted for a different solution than the one in the pull request. |
save assumes that there is gd.doors allocated. If there is level without any doors, gd.doors is NULL as no doors were added.
Fix this by always having gd.doors allocated when level is created.
Prevents: