Skip to content

Commit

Permalink
Updates to VMaNGOS method header files
Browse files Browse the repository at this point in the history
  • Loading branch information
Niam5 committed Apr 9, 2024
1 parent e9dd048 commit d6f480e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion methods/VMangos/CreatureMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ namespace LuaCreature
{
uint32 entry = creature->GetEntry();

CreatureInfo const* cInfo = ObjectMgr::GetCreatureTemplate(entry);
CreatureInfo const* cInfo = sObjectMgr.GetCreatureTemplate(entry);
if (cInfo)
E->Push(cInfo->pet_family);
return 1;
Expand Down
4 changes: 2 additions & 2 deletions methods/VMangos/GlobalMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ namespace LuaGlobalFunctions
{
if (save)
{
CreatureInfo const* cinfo = ObjectMgr::GetCreatureTemplate(entry);
CreatureInfo const* cinfo = sObjectMgr.GetCreatureTemplate(entry);
if (!cinfo)
{
E->Push();
Expand Down Expand Up @@ -1516,7 +1516,7 @@ namespace LuaGlobalFunctions
}
else
{
CreatureInfo const* cinfo = ObjectMgr::GetCreatureTemplate(entry);
CreatureInfo const* cinfo = sObjectMgr.GetCreatureTemplate(entry);
if (!cinfo)
{
E->Push();
Expand Down
2 changes: 1 addition & 1 deletion methods/VMangos/PlayerMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -2841,7 +2841,7 @@ namespace LuaPlayer
}
else if (creature > 0)
{
if (CreatureInfo const* cInfo = ObjectMgr::GetCreatureTemplate(creature))
if (CreatureInfo const* cInfo = sObjectMgr.GetCreatureTemplate(creature))
for (uint16 z = 0; z < creaturecount; ++z)
#ifndef CMANGOS
player->KilledMonster(cInfo, ObjectGuid());
Expand Down

0 comments on commit d6f480e

Please sign in to comment.