From 2d1040b703d9966d0108b4af0ba31517c702ca47 Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Thu, 11 Jul 2013 16:01:55 +0100
Subject: [PATCH] [Fix] Stupid me, last commit I was checking for a prefix
 instead of suffix. :/

---
 src/ai.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ai.c b/src/ai.c
index 7557073..c36ef30 100644
--- a/src/ai.c
+++ b/src/ai.c
@@ -238,10 +238,10 @@ int ai_init(void) {
 
   /* Load the profiles. */
   for(i = 0; i < nfiles; i++)
-    if((strncmp(files[i], AI_PREFIX, strlen(AI_PREFIX))==0) &&  /* prefixed. */
+    if((strncmp(files[i], AI_PREFIX, strlen(AI_PREFIX))==0) &&  /* Prefixed. */
           (strncmp(files[i] + strlen(AI_PREFIX), AI_INCLUDE, /* Not an include. */
                    strlen(AI_INCLUDE)) != 0) &&
-          (strncmp(files[i] + strlen(files[i]) - strlen(AI_PREFIX), /* Suffixed. */
+          (strncmp(files[i] + strlen(files[i]) - strlen(AI_SUFFIX), /* Suffixed. */
                    AI_SUFFIX, strlen(AI_SUFFIX))==0))
       if(ai_loadProfile(files[i]))
         WARN("Error loading AI profile '%s'", files[i]);