Fix some theoretical crashes when using the P_*XYMovement, P_*ZMovement, and P_RailThinker functions in Lua.

it is apparent that nobody actually reviewed my code before merging it

please actually review it this time

Merge request reports

Loading