Remove DeleteBonesFromWorld method from corpse and fix build for TC

This commit is contained in:
Rochet2
2015-11-09 17:56:17 +02:00
parent e41fed0c0d
commit c94ef51cbe
5 changed files with 22 additions and 17 deletions

View File

@@ -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