From 4c995226732ecd18c3ec71a4a751b1b44de6fc53 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 16 Jun 2024 18:15:23 +0200 Subject: [PATCH] fix logic expression --- src/magic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/magic.c b/src/magic.c index 34a67e086..9b8e2c4ac 100644 --- a/src/magic.c +++ b/src/magic.c @@ -2004,7 +2004,7 @@ struct region * co_get_region(const struct castorder * co) { void create_castorder(castorder * co, unit *caster, unit * familiar, const spell * sp, region * r, int lev, double force, int range, struct order * ord, spellparameter * a_params) { - assert(co && a_params == NULL || arrlen(a_params) > 0); + assert(co && (a_params == NULL || arrlen(a_params) > 0)); co->next = NULL; co->magician.u = caster; co->_familiar = familiar;