diff --git a/src/kernel/config.c b/src/kernel/config.c index 0751c31c2..96ac6d3c6 100644 --- a/src/kernel/config.c +++ b/src/kernel/config.c @@ -1057,9 +1057,9 @@ int rule_give(void) return config_get_int("rules.give.flags", GIVE_DEFAULT); } -int markets_module(void) +bool markets_module(void) { - return config_get_int("modules.markets", 0); + return (bool)config_get_int("modules.markets", 0); } static struct param *configuration; diff --git a/src/kernel/config.h b/src/kernel/config.h index a4a881ce1..dda7873aa 100644 --- a/src/kernel/config.h +++ b/src/kernel/config.h @@ -135,7 +135,7 @@ struct param; #define GUARD_ALL 0xFFFF int maxworkingpeasants(const struct region *r); - int markets_module(void); + bool markets_module(void); int wage(const struct region *r, const struct faction *f, const struct race *rc, int in_turn);