[4f0850b09] This map crashes GZDoom everytime

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.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [4f0850b09] This map crashes GZDoom everytime

Re: [4f0850b09] This map crashes GZDoom everytime

by Graf Zahl » Thu Feb 07, 2019 8:43 am

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.

Re: [4f0850b09] This map crashes GZDoom everytime

by Rachael » Wed Feb 06, 2019 10:06 am

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 all

	if (!origin)
		return nullptr;

[4f0850b09] This map crashes GZDoom everytime

by Kizoky » Wed Feb 06, 2019 9:44 am


Top