diff --git a/source/duke3d/src/actors.cpp b/source/duke3d/src/actors.cpp index 9146f7da0..3c583aed0 100644 --- a/source/duke3d/src/actors.cpp +++ b/source/duke3d/src/actors.cpp @@ -487,7 +487,8 @@ int32_t A_MoveSpriteClipdist(int32_t spriteNum, vec3_t const * const change, uin // Handle horizontal movement first. int returnValue; - int const diffZ = spriteheightofs(spriteNum, NULL, 0); + int32_t diffZ; + spriteheightofs(spriteNum, &diffZ, 0); int newZ = pSprite->z - diffZ; pSprite->z -= diffZ >> 1;