Răsfoiți Sursa

BETA: Fixing little typo in EffectTemplate (Now will throw exception when requesting non-existing effects)
* Reported by: Adry_85

Rumen Nikiforov 12 ani în urmă
părinte
comite
3c13972af8

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/effects/EffectTemplate.java

@@ -83,7 +83,7 @@ public class EffectTemplate
 		chanceCondition = chanceCond;
 		
 		_func = EffectHandler.getInstance().getHandler(func);
-		if (func == null)
+		if (_func == null)
 		{
 			_log.warning("EffectTemplate: Requested Unexistent effect: " + func);
 			throw new RuntimeException();