fixed bugs from the list of NarcisRO and more

This commit is contained in:
unknown
2012-05-23 20:44:10 +03:00
parent b8c8643133
commit ba723dce9d
23 changed files with 122 additions and 75 deletions
+1 -1
View File
@@ -459,7 +459,7 @@ private function trainUnit($unit,$amt,$great=false) {
foreach($trainlist as $train) {
$train_amt += $train['amt'];
}
$max = $bid36[$village->resarray['f'.$id]]['attri'] - ($village->unitarray['u99'] + $train_amt);
$max = $bid36[$building->getTypeLevel(36)]['attri'] - ($village->unitarray['u99'] + $train_amt);
if($max < $amt) {
$amt = 0;
}