Fixed issue #462 wrong troops training

This commit is contained in:
AL-Kateb
2018-01-22 13:47:00 +00:00
parent 454106dfce
commit b8749af55b
3 changed files with 0 additions and 841 deletions
-1
View File
@@ -46,7 +46,6 @@ if ( isset( $_GET['id'] ) ) {
if ( ! ctype_digit( preg_replace( "/[^a-zA-Z0-9_-]/", "", $_GET['id'] ) ) ) {
$_GET['id'] = "1";
}
$checkBuildings = array( 0, 16, 17, 25, 26, 27 );
if ( $_GET['id'] < 19 || ( isset( $_GET['gid'] ) && ! in_array( $_GET['gid'], $checkBuildings ) ) ) {