mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
* (internal) change intval() function to (int) casting (up to 6x faster)
This commit is contained in:
parent
c654ea329c
commit
0bb1d869af
@ -44,7 +44,7 @@ define('SKILL_BALANCE', -2);
|
|||||||
$skill = POT::SKILL__LEVEL;
|
$skill = POT::SKILL__LEVEL;
|
||||||
if(is_numeric($list))
|
if(is_numeric($list))
|
||||||
{
|
{
|
||||||
$list = intval($list);
|
$list = (int) $list;
|
||||||
if($list >= POT::SKILL_FIRST && $list <= SKILL__LAST)
|
if($list >= POT::SKILL_FIRST && $list <= SKILL__LAST)
|
||||||
$skill = $list;
|
$skill = $list;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user