From 39b07025509f6901fb53c91603217a57a4345091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=B6ppe?= Date: Thu, 5 Oct 2017 03:41:41 +0100 Subject: [PATCH] [botlib/be_aas_def.h] Change array size from MAX_PATH to MAX_QPATH The array is part of a structure and should have a fixed size that does not depend on inclusion order. --- code/botlib/be_aas_def.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/code/botlib/be_aas_def.h b/code/botlib/be_aas_def.h index 4e177cfa..dee60f03 100644 --- a/code/botlib/be_aas_def.h +++ b/code/botlib/be_aas_def.h @@ -39,10 +39,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define DF_AASENTCLIENT(x) (x - aasworld.entities - 1) #define DF_CLIENTAASENT(x) (&aasworld.entities[x + 1]) -#ifndef MAX_PATH - #define MAX_PATH MAX_QPATH -#endif - //structure to link entities to areas and areas to entities typedef struct aas_link_s { @@ -187,8 +183,8 @@ typedef struct aas_s float time; int numframes; //name of the aas file - char filename[MAX_PATH]; - char mapname[MAX_PATH]; + char filename[MAX_QPATH]; + char mapname[MAX_QPATH]; //bounding boxes int numbboxes; aas_bbox_t *bboxes;