Skip to content

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
iThorgrim committed Jan 22, 2025
1 parent 82a9049 commit 5d69c76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/server/game/Scripting/ScriptDefines/UnitScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void ScriptMgr::OnUnitDeath(Unit* unit, Unit* killer)
CALL_ENABLED_HOOKS(UnitScript, UNITHOOK_ON_UNIT_DEATH, script->OnUnitDeath(unit, killer));
}

void ScriptMgr::OnUnitSetShapeshiftForm(Unit* unit, ShapeshiftForm form)
void ScriptMgr::OnUnitSetShapeshiftForm(Unit* unit, uint8 form)
{
CALL_ENABLED_HOOKS(UnitScript, UNITHOOK_ON_UNIT_SET_SHAPESHIFT_FORM, script->OnUnitSetShapeshiftForm(unit, form));
}
Expand Down
2 changes: 1 addition & 1 deletion src/server/game/Scripting/ScriptDefines/UnitScript.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class UnitScript : public ScriptObject
virtual void OnUnitEnterEvadeMode(Unit* /*unit*/, uint8 /*evadeReason*/) { }
virtual void OnUnitEnterCombat(Unit* /*unit*/, Unit* /*victim*/) { }
virtual void OnUnitDeath(Unit* /*unit*/, Unit* /*killer*/) { }
virtual void OnUnitSetShapeshiftForm(Unit* /*unit*/, ShapeshiftForm /*form*/) { }
virtual void OnUnitSetShapeshiftForm(Unit* /*unit*/, uint8 /*form*/) { }
};

#endif
2 changes: 1 addition & 1 deletion src/server/game/Scripting/ScriptMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ class ScriptMgr
void OnUnitEnterEvadeMode(Unit* unit, uint8 why);
void OnUnitEnterCombat(Unit* unit, Unit* victim);
void OnUnitDeath(Unit* unit, Unit* killer);
void OnUnitSetShapeshiftForm(Unit* unit, ShapeshiftForm form);
void OnUnitSetShapeshiftForm(Unit* unit, uint8 form);

public: /* MovementHandlerScript */
void OnPlayerMove(Player* player, MovementInfo movementInfo, uint32 opcode);
Expand Down

0 comments on commit 5d69c76

Please sign in to comment.