Download link: https://github.com/Kizoky/Mr_SmileyII/b ... /MAP01.wad
Crash report: https://github.com/Kizoky/Mr_SmileyII/b ... Report.zip
[4f0850b09] This map crashes GZDoom everytime
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Re: [4f0850b09] This map crashes GZDoom everytime
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:
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 all
if (!origin)
return nullptr;
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49066
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [4f0850b09] This map crashes GZDoom everytime
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.
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.