[4f0850b09] This map crashes GZDoom everytime

Bugs that have been investigated and resolved somehow.

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.
Post Reply
User avatar
Kizoky
Posts: 291
Joined: Mon Nov 14, 2011 9:59 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Around weirdos, I'm the biggest weirdo among them
Contact:

[4f0850b09] This map crashes GZDoom everytime

Post by Kizoky »

User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: [4f0850b09] This map crashes GZDoom everytime

Post 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 all

	if (!origin)
		return nullptr;
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [4f0850b09] This map crashes GZDoom everytime

Post 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.
Post Reply

Return to “Closed Bugs [GZDoom]”