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)
|
void KartRewinder::rewindToEvent(BareNetworkString *buffer)
|
||||||
{
|
{
|
||||||
|
buffer->reset();
|
||||||
uint8_t type = buffer->getUInt8();
|
uint8_t type = buffer->getUInt8();
|
||||||
if(type & EVENT_CONTROL)
|
if(type & EVENT_CONTROL)
|
||||||
m_kart->getControls().setFromBuffer(buffer);
|
m_kart->getControls().setFromBuffer(buffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user