Added real memory and thread usage

This commit is contained in:
Shoghi Cervantes
2015-03-16 11:56:00 +01:00
parent 4383e272eb
commit 4ec584d800
4 changed files with 69 additions and 27 deletions

View File

@ -77,7 +77,10 @@ class Effect{
* @return $this
*/
public static function getEffect($id){
return clone self::$effects[(int) $id];
if(isset(self::$effects[$id])){
return clone self::$effects[(int) $id];
}
return null;
}
public static function getEffectByName($name){
@ -184,4 +187,4 @@ class Effect{
break;
}
}
}
}