diff --git a/CorpseMethods.h b/CorpseMethods.h index 64425a7..f1fca74 100644 --- a/CorpseMethods.h +++ b/CorpseMethods.h @@ -85,9 +85,7 @@ namespace LuaCorpse { // Prevent a failed assertion. if (corpse->GetType() != CORPSE_BONES) - { return 0; - } corpse->DeleteBonesFromWorld(); return 0; } diff --git a/GlobalMethods.h b/GlobalMethods.h index c71683e..bf83b1f 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -2098,7 +2098,7 @@ namespace LuaGlobalFunctions Corpse* corpse = Eluna::CHECKOBJ(L, 1); eObjectAccessor->RemoveCorpse(corpse); Eluna::CHECKOBJ(L, 1)->Invalidate(); - return 1; + return 0; } /** @@ -2114,7 +2114,7 @@ namespace LuaGlobalFunctions bool insignia = Eluna::CHECKVAL(L, 2, false); Eluna::Push(L, eObjectAccessor->ConvertCorpseForPlayer(ObjectGuid(guid), insignia)); - return 0; + return 1; } /**