summaryrefslogtreecommitdiffstats
path: root/src/modelinfo/ModelIndices.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-23 01:51:26 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-23 01:56:48 +0100
commit6b54d04bfc79141c4f751875641dec61da18f3f7 (patch)
treeb4bc1ff4d102711f6afaa2f57050d07222cc3bc3 /src/modelinfo/ModelIndices.cpp
parentcSmallHeap (diff)
downloadre3-6b54d04bfc79141c4f751875641dec61da18f3f7.tar
re3-6b54d04bfc79141c4f751875641dec61da18f3f7.tar.gz
re3-6b54d04bfc79141c4f751875641dec61da18f3f7.tar.bz2
re3-6b54d04bfc79141c4f751875641dec61da18f3f7.tar.lz
re3-6b54d04bfc79141c4f751875641dec61da18f3f7.tar.xz
re3-6b54d04bfc79141c4f751875641dec61da18f3f7.tar.zst
re3-6b54d04bfc79141c4f751875641dec61da18f3f7.zip
Diffstat (limited to 'src/modelinfo/ModelIndices.cpp')
-rw-r--r--src/modelinfo/ModelIndices.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/modelinfo/ModelIndices.cpp b/src/modelinfo/ModelIndices.cpp
index 98c7fb38..83539404 100644
--- a/src/modelinfo/ModelIndices.cpp
+++ b/src/modelinfo/ModelIndices.cpp
@@ -2,17 +2,25 @@
#include "General.h"
#include "ModelIndices.h"
+#include "main.h"
-#define X(name, var) int16 var = -1;
+CModelIndices *gpModelIndices;
+
+/*#define X(name, var) int16 var = -1;
MODELINDICES
-#undef X
+#undef X*/
void
InitModelIndices(void)
{
-#define X(name, var) var = -1;
+/*#define X(name, var) var = -1;
MODELINDICES
-#undef X
+#undef X*/
+ if (gMakeResources)
+ {
+ gpModelIndices = new CModelIndices;
+ memset(gpModelIndices, -1, sizeof(CModelIndices));
+ }
}
void