diff --git a/include/config.h b/include/config.h index 17dda42411..f4be812643 100644 --- a/include/config.h +++ b/include/config.h @@ -6,7 +6,7 @@ // still has them in the ROM. This is because the developers forgot // to define NDEBUG before release, however this has been changed as // Ruby's actual debug build does not use the AGBPrint features. -// #define NDEBUG +#define NDEBUG // To enable printf debugging, comment out "#define NDEBUG". This allows // the various AGBPrint functions to be used. (See include/gba/isagbprint.h). diff --git a/src/battle_ai_util.c b/src/battle_ai_util.c index 99cc0c187b..a0ad20951c 100644 --- a/src/battle_ai_util.c +++ b/src/battle_ai_util.c @@ -861,8 +861,6 @@ u32 NoOfHitsForTargetToFaintAI(u32 battlerDef, u32 battlerAtk) { if (currNumberOfHits < leastNumberOfHits) leastNumberOfHits = currNumberOfHits; - else if (leastNumberOfHits == UNKNOWN_NO_OF_HITS) - leastNumberOfHits = currNumberOfHits; } } return leastNumberOfHits;