diff --git a/setup/tools/filegen/complexImg.func.php b/setup/tools/filegen/complexImg.func.php index 897c88d2..0b448d8b 100644 --- a/setup/tools/filegen/complexImg.func.php +++ b/setup/tools/filegen/complexImg.func.php @@ -531,7 +531,9 @@ if (!CLI) while ($multiLevel < 18); // Karazhan has 17 frickin floors // check if we can create base map anyway - $hasBaseMap = CLISetup::fileExists($path.'/'.$textureStr.'1.blp') || CLISetup::fileExists($path.'/'.$textureStr.'1.png'); + $png = $path.'/'.$textureStr.'1.png'; + $blp = $path.'/'.$textureStr.'1.blp'; + $hasBaseMap = CLISetup::fileExists($blp) || CLISetup::fileExists($png); CLI::write(' - area has '.($multiLeveled ? $multiLevel . ' levels' : 'only base level'));