Allow strangemood to work if debug_nomoods is not available

develop
lethosor 2014-12-06 20:29:08 -05:00
parent a615723b38
commit 88b51fcb5b
1 changed files with 2 additions and 2 deletions

@ -42,7 +42,7 @@ REQUIRE_GLOBAL(created_item_type);
REQUIRE_GLOBAL(created_item_subtype);
REQUIRE_GLOBAL(created_item_mattype);
REQUIRE_GLOBAL(created_item_matindex);
REQUIRE_GLOBAL(debug_nomoods);
using df::global::debug_nomoods;
Random::MersenneRNG rng;
@ -476,7 +476,7 @@ command_result df_strangemood (color_ostream &out, vector <string> & parameters)
out.printerr("ARTIFACTS are not enabled!\n");
return CR_FAILURE;
}
if (*debug_nomoods)
if (debug_nomoods && *debug_nomoods)
{
out.printerr("Strange moods disabled via debug flag!\n");
return CR_FAILURE;