diff --git a/dep/ggpo-x/include/ggponet.h b/dep/ggpo-x/include/ggponet.h index 0b7dbf35b..1f99e917a 100644 --- a/dep/ggpo-x/include/ggponet.h +++ b/dep/ggpo-x/include/ggponet.h @@ -229,7 +229,7 @@ typedef struct { * should make the current game state match the state contained in the * buffer. */ - bool (__cdecl *load_game_state)(void* context, unsigned char *buffer, int len, int framesToRollback); + bool (__cdecl *load_game_state)(void* context, unsigned char* buffer, int len, int framesToRollback, int frameToLoad); /* * log_game_state - Used in diagnostic testing. The client should use diff --git a/dep/ggpo-x/src/sync.cpp b/dep/ggpo-x/src/sync.cpp index 2440e4179..6053d0eb2 100644 --- a/dep/ggpo-x/src/sync.cpp +++ b/dep/ggpo-x/src/sync.cpp @@ -187,7 +187,7 @@ Sync::LoadFrame(int frame, int framesToRollback) state->frame, state->cbuf, state->checksum); ASSERT(state->buf && state->cbuf); - _callbacks.load_game_state(_callbacks.context, state->buf, state->cbuf, framesToRollback); + _callbacks.load_game_state(_callbacks.context, state->buf, state->cbuf, framesToRollback, state->frame); // Reset framecount and the head of the state ring-buffer to point in // advance of the current frame (as if we had just finished executing it).