mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix RemoveCorpse and RemoveCorpse return values
Small bracket clean up
This commit is contained in:
@@ -85,9 +85,7 @@ namespace LuaCorpse
|
||||
{
|
||||
// Prevent a failed assertion.
|
||||
if (corpse->GetType() != CORPSE_BONES)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
corpse->DeleteBonesFromWorld();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user