Fix crash in case the same event is replayed more than once.

This commit is contained in:
hiker 2016-08-09 17:39:20 +10:00
parent a5ce27caa5
commit f4f2f11943

View File

@ -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);