Skip to content
Snippets Groups Projects
Commit 1810e4de authored by Nik's avatar Nik
Browse files

BETA: Class cast exception error fix. The return in the switch doesnt always...

BETA: Class cast exception error fix. The return in the switch doesnt always return empty target list, and since there is no break in the case, it falls down and causes the error.
parent 002ceaf4
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,8 @@ public class TargetCorpseMob implements ITargetTypeHandler ...@@ -52,6 +52,8 @@ public class TargetCorpseMob implements ITargetTypeHandler
if (isSummon && ((L2ServitorInstance)target).getOwner() != null if (isSummon && ((L2ServitorInstance)target).getOwner() != null
&& ((L2ServitorInstance)target).getOwner().getObjectId() == activeChar.getObjectId()) && ((L2ServitorInstance)target).getOwner().getObjectId() == activeChar.getObjectId())
return _emptyTargetList; return _emptyTargetList;
break;
} }
case DRAIN: case DRAIN:
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment