The ItemManager must be updated even if no event is received (to

rewind item states to the rewind time).
This commit is contained in:
hiker 2018-05-10 23:25:04 +10:00
parent 5f8dc7b641
commit b77a76dd8c

View File

@ -210,11 +210,9 @@ void RewindManager::restoreState(BareNetworkString *data)
for (auto rewinder = m_all_rewinder.begin();
rewinder != m_all_rewinder.end(); ++rewinder)
{ uint16_t count = data->getUInt16();
if (count > 0)
{
(*rewinder)->restoreState(data, count);
}
{
uint16_t count = data->getUInt16();
(*rewinder)->restoreState(data, count);
} // for all rewinder
} // restoreState