Skip to content

Commit cb5b239

Browse files
committed
Fix assuming proc spell info exists on TC side.
1 parent 42d59fe commit cb5b239

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

methods/TrinityCore/ElunaProcInfoMethods.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ namespace LuaElunaProcInfo
8787
*/
8888
int GetSpellInfo(Eluna* E, ElunaProcInfo* procInfo)
8989
{
90+
if (!procInfo->GetSpellInfo())
91+
{
92+
E->Push();
93+
return 1;
94+
}
95+
9096
ElunaSpellInfo info(procInfo->GetSpellInfo()->Id);
9197
E->Push(&info);
9298
return 1;

0 commit comments

Comments
 (0)