The source project of this merge request has been removed.
Fix segfault when trying to access mo->player->mo from SpawnMobj hook
Due to a symmetry flaw in the MobjSpawn hook, accessing mo->player->mo when an MT_PLAYER is spawning will cause the game to segfault. This was caused by the spawn logic not setting mobj->player->mo when setting mobj->player, thus causing mobj->player->mo to remain NULL when SpawnHook was invoked. The fix sets both values at the same time, thus fixing the issue.
Fixes #1189 (closed)