Fix UINT8 references to pSoldier->ubID to UINT16

This commit is contained in:
Asdow
2023-07-27 21:29:37 +03:00
parent 9fb4ef8607
commit 9ac53cac32
5 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -2075,7 +2075,7 @@ bool AStarPathfinder::IsSomeoneInTheWay()
if (fPathAroundPeople && ( (CurrentNode != DestNode) || fCopyReachable) )
{
// ATE: ONLY cancel if they are moving.....
UINT8 ubMerc = WhoIsThere2( CurrentNode, pSoldier->pathing.bLevel);
UINT16 ubMerc = WhoIsThere2( CurrentNode, pSoldier->pathing.bLevel);
if ( ubMerc < NOBODY && ubMerc != pSoldier->ubID )
{
// Check for movement....