diff options
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r-- | src/gameplay.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp index 6637d23..10de69d 100644 --- a/src/gameplay.cpp +++ b/src/gameplay.cpp @@ -32,6 +32,7 @@ typedef struct { char *file; } WorldXML; + typedef struct { NPC *npc; unsigned int index; @@ -98,7 +99,7 @@ void initEverything(void){ for(auto x : xmlFiles){ if(strncmp(x.c_str(),".",1) && strncmp(x.c_str(),"..",2)){ - file = new char[4 + x.size()]; + file = new char[5 + x.size()]; strncpy(file,"xml/",4); strcpy(file+4,x.c_str()); xml.LoadFile(file); |