I was testing the Allegro Configuration methods and I came across this. Probably something stupid on my part, but I can't figure it out.
if(!al_get_config_value(config, "", "Exist"))
cout << al_get_config_value(config, "", "Exist") << endl;
logger.log("Configuration file is malformed. Recreating.");
cout << "Test." << endl;
The "Test" never gets printed. If I comment out the second line of the if statement it does though.
Why does this cause cout to fail?