diff --git a/src/d_dehacked.cpp b/src/d_dehacked.cpp index 62c5090e20..a1ed9262f7 100644 --- a/src/d_dehacked.cpp +++ b/src/d_dehacked.cpp @@ -2894,6 +2894,12 @@ bool ADehackedPickup::TryPickup (AActor *&toucher) RealPickup = static_cast(Spawn (type, x, y, z, NO_REPLACE)); if (RealPickup != NULL) { + // The internally spawned item should never count towards statistics. + if (RealPickup->flags & MF_COUNTITEM) + { + RealPickup->flags &= ~MF_COUNTITEM; + level.total_items--; + } if (!(flags & MF_DROPPED)) { RealPickup->flags &= ~MF_DROPPED;