diff --git a/src/common/kernel/spell.c b/src/common/kernel/spell.c index eee0269b5..65e2e05fb 100644 --- a/src/common/kernel/spell.c +++ b/src/common/kernel/spell.c @@ -67,6 +67,7 @@ #include #include #include +#include /* triggers includes */ #include @@ -7267,7 +7268,7 @@ sp_wdwpyramid(castorder *co) "unit region command", mage, r, co->order)); } else { region *r2; - int mindist = -1; + int mindist = INT_MAX; int minshowdist; int maxshowdist;