From b62fa1fa5c5f904b1040f7222571d8dad927c2c2 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 30 Mar 2019 19:36:10 +0000 Subject: [PATCH] Fix stupid bug in r7409 git-svn-id: https://svn.eduke32.com/eduke32@7461 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/actors.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;