* (internal) change intval() function to (int) casting (up to 6x faster)

This commit is contained in:
slawkens 2018-06-01 11:33:22 +02:00
parent c654ea329c
commit 0bb1d869af

View File

@ -44,7 +44,7 @@ define('SKILL_BALANCE', -2);
$skill = POT::SKILL__LEVEL;
if(is_numeric($list))
{
$list = intval($list);
$list = (int) $list;
if($list >= POT::SKILL_FIRST && $list <= SKILL__LAST)
$skill = $list;
}