News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Segmentation Fault for desc = NULL

Started by Yona-TYT, Today at 01:15:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT

There was a bug when trying to get a waytype = 6, because in pak64 this object does not exist, this is in reference to my other patch to get the last way/track used by the player: https://forum.simutrans.com/index.php/topic,23813.msg212102/topicseen.html#msg212102

0001-Fix-Segmentation-Fault-for-desc-NULL.patch

prissi

NUll should be a valid return paramter for non-existing ways.

Yona-TYT

Quote from: prissi on Today at 03:04:40 AMNUll should be a valid return paramter for non-existing ways.
Now I understand better, thank you.  8)