summaryrefslogtreecommitdiffstats
path: root/src/core/FileLoader.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-10 17:09:14 +0200
committeraap <aap@papnet.eu>2020-05-10 17:09:14 +0200
commit0552d49fcef00be81b3b5744e49fae5e7f0fcf34 (patch)
tree5e72da39d5268d05fb4860e1b16547dbc9147160 /src/core/FileLoader.cpp
parentadded some anim groups (diff)
downloadre3-0552d49fcef00be81b3b5744e49fae5e7f0fcf34.tar
re3-0552d49fcef00be81b3b5744e49fae5e7f0fcf34.tar.gz
re3-0552d49fcef00be81b3b5744e49fae5e7f0fcf34.tar.bz2
re3-0552d49fcef00be81b3b5744e49fae5e7f0fcf34.tar.lz
re3-0552d49fcef00be81b3b5744e49fae5e7f0fcf34.tar.xz
re3-0552d49fcef00be81b3b5744e49fae5e7f0fcf34.tar.zst
re3-0552d49fcef00be81b3b5744e49fae5e7f0fcf34.zip
Diffstat (limited to 'src/core/FileLoader.cpp')
-rw-r--r--src/core/FileLoader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp
index 7d1ba67f..fb826798 100644
--- a/src/core/FileLoader.cpp
+++ b/src/core/FileLoader.cpp
@@ -791,7 +791,7 @@ CFileLoader::LoadVehicleObject(const char *line)
// TODO(MIAMI): anims
for(p = gamename; *p; p++)
if(*p == '_') *p = ' ';
- strncpy(mi->m_gameName, gamename, 32);
+ strcpy(mi->m_gameName, gamename);
mi->m_level = level;
mi->m_compRules = comprules;
@@ -873,6 +873,7 @@ CFileLoader::LoadPedObject(const char *line)
for(animGroupId = 0; animGroupId < NUM_ANIM_ASSOC_GROUPS; animGroupId++)
if(strcmp(animGroup, CAnimManager::GetAnimGroupName((AssocGroupId)animGroupId)) == 0)
break;
+ assert(animGroupId < NUM_ANIM_ASSOC_GROUPS);
mi->m_animGroup = animGroupId;
mi->m_carsCanDrive = carsCanDrive;
}