mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-26 03:15:40 +00:00
Fixed save game Load/Save failed assertion on Debug build
This commit is contained in:
parent
f70c2ad54f
commit
0600edd49d
2 changed files with 5 additions and 1 deletions
|
@ -319,7 +319,7 @@ _TWEEKCLASS(CTweakFloat, float);
|
||||||
#undef _TWEEKCLASS
|
#undef _TWEEKCLASS
|
||||||
|
|
||||||
#ifdef VALIDATE_SAVE_SIZE
|
#ifdef VALIDATE_SAVE_SIZE
|
||||||
static int32 _bufBytesRead;
|
extern int32 _bufBytesRead;
|
||||||
#define INITSAVEBUF _bufBytesRead = 0;
|
#define INITSAVEBUF _bufBytesRead = 0;
|
||||||
#define VALIDATESAVEBUF(b) assert(_bufBytesRead == b);
|
#define VALIDATESAVEBUF(b) assert(_bufBytesRead == b);
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -447,6 +447,10 @@ void re3_trace(const char *filename, unsigned int lineno, const char *func, cons
|
||||||
OutputDebugStringA(buff);
|
OutputDebugStringA(buff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef VALIDATE_SAVE_SIZE
|
||||||
|
int32 _bufBytesRead;
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
patch()
|
patch()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue