diff --git a/src/kernel/curse.c b/src/kernel/curse.c index 4a7403e69..3b0d7c3e2 100644 --- a/src/kernel/curse.c +++ b/src/kernel/curse.c @@ -438,7 +438,10 @@ double curse_geteffect(const curse * c) int curse_geteffect_int(const curse * c) { double effect = curse_geteffect(c); - assert(effect - (int)effect == 0); + if (effect - (int)effect != 0) { + log_error("curse has an integer attribute with float value: '%s' = %lf", + c->type->cname, effect); + } return (int)effect; }