Fixed possible infinite loop in hasSpace

This commit is contained in:
Shoghi Cervantes 2013-09-04 21:26:22 +02:00
parent f29181a8ee
commit 4a46d8fd9c

View File

@ -351,7 +351,7 @@ class Player{
break;
}
}
if($add === 0){
if($add <= 0){
return false;
}
$count -= $add;