Use correct gridno for XY conversion (#289)

This commit is contained in:
Asdow
2024-03-13 19:29:28 +02:00
committed by GitHub
parent 65698284c3
commit 9dfbc7d394
+1 -1
View File
@@ -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 )
{