mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Remove DeleteBonesFromWorld method from corpse and fix build for TC
This commit is contained in:
@@ -77,19 +77,5 @@ namespace LuaCorpse
|
||||
corpse->SaveToDB();
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes the [Corpse] from the world.
|
||||
*
|
||||
* If the [Corpse]'s type is not BONES then this does nothing.
|
||||
*/
|
||||
int DeleteBonesFromWorld(Eluna* /*E*/, lua_State* /*L*/, Corpse* corpse)
|
||||
{
|
||||
// Prevent a failed assertion.
|
||||
if (corpse->GetType() != CORPSE_BONES)
|
||||
return 0;
|
||||
corpse->DeleteBonesFromWorld();
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user