Page 1 of 1

[4f0850b09] This map crashes GZDoom everytime

PostPosted: Wed Feb 06, 2019 10:44 am
by Kizoky

Re: [4f0850b09] This map crashes GZDoom everytime

PostPosted: Wed Feb 06, 2019 11:06 am
by Rachael
This crash happens because "origin" is nullptr in function *COPY_AAPTR in actorptrselect.cpp. (line ~65 or so)

Putting this at the beginning of the function fixes the crash, but I am not sure this is the correct way to handle it, so I am posting it here instead:
Code: Select allExpand view
   if (!origin)
      return nullptr;

Re: [4f0850b09] This map crashes GZDoom everytime

PostPosted: Thu Feb 07, 2019 9:43 am
by Graf Zahl
Fixed. And just like I suspected, adding that check would have broken the entire thing.
The problem here was that when being called from ACS, the origin can be null - but still needs to be able to resolve the player constants to the actual player.