Fix possible crash

This commit is contained in:
Benau
2020-09-21 00:49:23 +08:00
parent 94f4a6f644
commit 2fc992ded9
2 changed files with 7 additions and 1 deletions

View File

@@ -155,7 +155,7 @@ extern "C" void reset_network_body()
{
// In windows the rendering is paused when out focus, which pauses the
// smooth timer
if (World::getWorld() && RewindManager::isEnabled())
if (World::getWorld() && RewindManager::exists())
RewindManager::get()->resetSmoothNetworkBody();
} // reset_network_body