From 9dfbc7d39491b65089f1633bfaa9399937fc2d15 Mon Sep 17 00:00:00 2001 From: Asdow <20314541+Asdow@users.noreply.github.com> Date: Wed, 13 Mar 2024 19:29:28 +0200 Subject: [PATCH] Use correct gridno for XY conversion (#289) --- Tactical/Weapons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tactical/Weapons.cpp b/Tactical/Weapons.cpp index cdc60e02a..4aea8f816 100644 --- a/Tactical/Weapons.cpp +++ b/Tactical/Weapons.cpp @@ -5692,7 +5692,7 @@ void StructureHit( INT32 iBullet, UINT16 usWeaponIndex, INT16 bWeaponStatus, UIN if ( pBullet->fFragment == false) { INT16 sX, sY; - ConvertGridNoToCenterCellXY(pSoldier->sGridNo, &sX, &sY); + ConvertGridNoToCenterCellXY(sGridNo, &sX, &sY); if ( Item[usWeaponIndex].singleshotrocketlauncher ) {