diff --git a/BOSS/source/GameState.cpp b/BOSS/source/GameState.cpp index 5578f393..90fc7fff 100644 --- a/BOSS/source/GameState.cpp +++ b/BOSS/source/GameState.cpp @@ -244,6 +244,7 @@ void GameState::getAllLegalActions(ActionSet & actions) const bool GameState::isLegal(const ActionType & action) const { + const size_t mineralWorkers = getNumMineralWorkers(); const size_t numRefineries = _units.getNumTotal(ActionTypes::GetRefinery(getRace())); const size_t numDepots = _units.getNumTotal(ActionTypes::GetResourceDepot(getRace())); const size_t refineriesInProgress = _units.getNumInProgress(ActionTypes::GetRefinery(getRace())); diff --git a/SparCraft/source/Common.cpp b/SparCraft/source/Common.cpp index bfb85ba6..3fc35a03 100644 --- a/SparCraft/source/Common.cpp +++ b/SparCraft/source/Common.cpp @@ -11,11 +11,11 @@ namespace SparCraft { std::cerr << "\n\n\nSparCraft Fatal Error: \n\n\n " << errorMessage << "\n\n"; - std::ofstream logStream; + /*std::ofstream logStream; logStream.open(SPARCRAFT_LOGFILE, std::ofstream::app); logStream << "\n\n\nSparCraft Fatal Error: \n\n\n " << errorMessage << "\n\n"; logStream.flush(); - logStream.close(); + logStream.close();*/ throw(SPARCRAFT_FATAL_ERROR); }