mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
refactor(offsets): collapse duplicate object type-mask enum (OBJ_TYPE_* -> TYPEMASK_*)
OBJ_TYPE_* was a partial second naming of the same object-type bits as the complete TYPEMASK_* set (OBJ_TYPE_ITEM=2=TYPEMASK_ITEM, ... GAMEOBJECT =0x20 both) -- a single-source-of-truth violation. Repoint all ~18 references to TYPEMASK_* (identical values, behavior-preserving) and delete the OBJ_TYPE_* definitions, folding their derivation notes (bitmask semantics, FUN_004F8DB0 for PLAYER, FUN_0052AA20 for GAMEOBJECT, FUN_00529FE0 SetUnit) into the surviving TYPEMASK_* comment.
This commit is contained in:
@@ -81,7 +81,7 @@ static int __fastcall Script_GameTooltipSetUnitAura(void *L) {
|
||||
using ObjectGetName_t = const char *(__fastcall *)(void *obj, void *edx_unused, int *outFlags);
|
||||
|
||||
static const char *ResolveUnitName(uint32_t guidLo, uint32_t guidHi) {
|
||||
void *obj = Object::ByGuid(Offsets::OBJ_TYPE_UNIT,
|
||||
void *obj = Object::ByGuid(Offsets::TYPEMASK_UNIT,
|
||||
(static_cast<uint64_t>(guidHi) << 32) | guidLo,
|
||||
"GameTooltip:GetUnitGUID", 0x172);
|
||||
if (obj == nullptr)
|
||||
|
||||
Reference in New Issue
Block a user