Fix RemoveCorpse and RemoveCorpse return values

Small bracket clean up
This commit is contained in:
Tommy
2015-01-20 23:23:58 -05:00
parent 7b94cc4eed
commit 9fe397aaf5
2 changed files with 2 additions and 4 deletions

View File

@@ -85,9 +85,7 @@ namespace LuaCorpse
{
// Prevent a failed assertion.
if (corpse->GetType() != CORPSE_BONES)
{
return 0;
}
corpse->DeleteBonesFromWorld();
return 0;
}

View File

@@ -2098,7 +2098,7 @@ namespace LuaGlobalFunctions
Corpse* corpse = Eluna::CHECKOBJ<Corpse>(L, 1);
eObjectAccessor->RemoveCorpse(corpse);
Eluna::CHECKOBJ<ElunaObject>(L, 1)->Invalidate();
return 1;
return 0;
}
/**
@@ -2114,7 +2114,7 @@ namespace LuaGlobalFunctions
bool insignia = Eluna::CHECKVAL<bool>(L, 2, false);
Eluna::Push(L, eObjectAccessor->ConvertCorpseForPlayer(ObjectGuid(guid), insignia));
return 0;
return 1;
}
/**