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; }