The ItemManager must be updated even if no event is received (to
rewind item states to the rewind time).
This commit is contained in:
parent
5f8dc7b641
commit
b77a76dd8c
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user