Fix crash in case the same event is replayed more than once.
This commit is contained in:
parent
a5ce27caa5
commit
f4f2f11943
@ -141,6 +141,7 @@ void KartRewinder::update()
|
||||
// ----------------------------------------------------------------------------
|
||||
void KartRewinder::rewindToEvent(BareNetworkString *buffer)
|
||||
{
|
||||
buffer->reset();
|
||||
uint8_t type = buffer->getUInt8();
|
||||
if(type & EVENT_CONTROL)
|
||||
m_kart->getControls().setFromBuffer(buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user