Convert SOLDIERTYPE::usDragPersonID to SoldierID

This commit is contained in:
Asdow
2024-11-16 00:09:48 +02:00
parent 153d402065
commit 8ef7fb5ae4
3 changed files with 4 additions and 8 deletions
+2 -2
View File
@@ -11529,7 +11529,7 @@ void SOLDIERTYPE::MoveMerc( FLOAT dMovementChange, FLOAT dAngle, BOOLEAN fCheckR
if ( this->usDragPersonID != NOBODY )
{
SOLDIERTYPE* pSoldier = MercPtrs[this->usDragPersonID];
SOLDIERTYPE* pSoldier = this->usDragPersonID;
if ( pSoldier )
{
@@ -20876,7 +20876,7 @@ void SOLDIERTYPE::CancelDrag()
// if we are dragging a person, set them to the center of their gridno, otherwise their position might be off
if (this->usDragPersonID != NOBODY)
{
SOLDIERTYPE* pSoldier = MercPtrs[this->usDragPersonID];
SOLDIERTYPE* pSoldier = this->usDragPersonID;
if ( pSoldier && !TileIsOutOfBounds(pSoldier->sGridNo) )
{