# HG changeset patch # User Adam Kaminski # Date 1642355076 18000 # Sun Jan 16 12:44:36 2022 -0500 # Node ID 7f028ed0c074e725c17b614d948a4d3371be6d71 # Parent 43b60f19f9411518b38c3478697da13d64e8aa23 Fixed: spectating a morphed player could potentially crash the game. diff -r 43b60f19f941 -r 7f028ed0c074 src/p_interaction.cpp --- a/src/p_interaction.cpp Sat Jan 15 10:49:24 2022 -0500 +++ b/src/p_interaction.cpp Sun Jan 16 12:44:36 2022 -0500 @@ -2534,7 +2534,7 @@ { APlayerPawn *mo = pPlayer->mo; - if (( mo->GetClass()->TypeName != pPlayer->cls->TypeName ) && ( mo->target != NULL )) + if (( mo->IsKindOf( RUNTIME_CLASS( APlayerChunk ))) && ( mo->target != NULL )) { APlayerPawn *pmo = barrier_cast( pPlayer->mo->target ); mo->player = NULL;