Fixed save game Load/Save failed assertion on Debug build

This commit is contained in:
Sergeanur 2019-10-12 00:06:30 +03:00
parent f70c2ad54f
commit 0600edd49d
2 changed files with 5 additions and 1 deletions

View File

@ -319,7 +319,7 @@ _TWEEKCLASS(CTweakFloat, float);
#undef _TWEEKCLASS
#ifdef VALIDATE_SAVE_SIZE
static int32 _bufBytesRead;
extern int32 _bufBytesRead;
#define INITSAVEBUF _bufBytesRead = 0;
#define VALIDATESAVEBUF(b) assert(_bufBytesRead == b);
#else

View File

@ -447,6 +447,10 @@ void re3_trace(const char *filename, unsigned int lineno, const char *func, cons
OutputDebugStringA(buff);
}
#ifdef VALIDATE_SAVE_SIZE
int32 _bufBytesRead;
#endif
void
patch()
{