summaryrefslogtreecommitdiffstats
path: root/src/modelinfo/BaseModelInfo.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-07 21:56:09 +0200
committeraap <aap@papnet.eu>2020-05-07 21:56:09 +0200
commita8f1505517f1baf061fe6b545906eaed09f851b8 (patch)
tree85a74573ba1184a384785181da42bb6e1160e16d /src/modelinfo/BaseModelInfo.h
parentMerge branch 'master' of github.com:GTAmodding/re3 (diff)
downloadre3-a8f1505517f1baf061fe6b545906eaed09f851b8.tar
re3-a8f1505517f1baf061fe6b545906eaed09f851b8.tar.gz
re3-a8f1505517f1baf061fe6b545906eaed09f851b8.tar.bz2
re3-a8f1505517f1baf061fe6b545906eaed09f851b8.tar.lz
re3-a8f1505517f1baf061fe6b545906eaed09f851b8.tar.xz
re3-a8f1505517f1baf061fe6b545906eaed09f851b8.tar.zst
re3-a8f1505517f1baf061fe6b545906eaed09f851b8.zip
Diffstat (limited to 'src/modelinfo/BaseModelInfo.h')
-rw-r--r--src/modelinfo/BaseModelInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modelinfo/BaseModelInfo.h b/src/modelinfo/BaseModelInfo.h
index 9f828e7f..fdf1efb6 100644
--- a/src/modelinfo/BaseModelInfo.h
+++ b/src/modelinfo/BaseModelInfo.h
@@ -48,7 +48,7 @@ public:
m_type == MITYPE_MLO || m_type == MITYPE_XTRACOMPS; // unused but what the heck
}
char *GetName(void) { return m_name; }
- void SetName(const char *name) { strncpy(m_name, name, 24); }
+ void SetName(const char *name) { strncpy(m_name, name, MAX_MODEL_NAME); }
void SetColModel(CColModel *col, bool owns = false){
m_colModel = col; m_bOwnsColModel = owns; }
CColModel *GetColModel(void) { return m_colModel; }