1
0
Fork 0
mirror of https://github.com/halpz/re3.git synced 2024-12-24 17:55:29 +00:00

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()
{