diff --git a/src/p_user.c b/src/p_user.c
index 45a65668bdfc6d4807e9a19d29ef9949bdcd17e0..5194d6e69c3cf7af395e9d0bffa78fcbebe36e37 100644
--- a/src/p_user.c
+++ b/src/p_user.c
@@ -1683,10 +1683,10 @@ mobj_t *P_SpawnGhostMobj(mobj_t *mobj)
 	ghost->skin = mobj->skin;
 
 	if (mobj->flags2 & MF2_OBJECTFLIP)
-		ghost->flags |= MF2_OBJECTFLIP;
+		ghost->flags2 |= MF2_OBJECTFLIP;
 
 	if (!(mobj->flags & MF_DONTENCOREMAP))
-		mobj->flags &= ~MF_DONTENCOREMAP;
+		ghost->flags &= ~MF_DONTENCOREMAP;
 
 	// Copy interpolation data :)
 	ghost->old_x = mobj->old_x2;