From 29a306e2e6b20a8a95a0e9e8da1bf2540beeb767 Mon Sep 17 00:00:00 2001 From: FrancescoBorzi Date: Mon, 1 Nov 2021 14:26:42 +0100 Subject: [PATCH] fix: build --- modules/mod-as-platform/src/AZTH_SC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mod-as-platform/src/AZTH_SC.cpp b/modules/mod-as-platform/src/AZTH_SC.cpp index 7ba3e8b..9035644 100644 --- a/modules/mod-as-platform/src/AZTH_SC.cpp +++ b/modules/mod-as-platform/src/AZTH_SC.cpp @@ -1240,7 +1240,7 @@ class Unit_SC : public UnitScript if (index == UNIT_FIELD_BYTES_2) // Allow targetting opposite faction in party when enabled in config fieldBuffer << (unit->GetUInt32Value(UNIT_FIELD_BYTES_2) & ((UNIT_BYTE2_FLAG_SANCTUARY) << 8)); // this flag is at uint8 offset 1 !! else // pretend that all other HOSTILE players have own faction, to allow follow, heal, rezz (trade wont work) - fieldBuffer << uint32(target->getFaction()); + fieldBuffer << uint32(target->GetFaction()); return true; }