From fb5e5335aa5212cf6967b0cf10066231758bb1c4 Mon Sep 17 00:00:00 2001 From: elsid Date: Sat, 1 Jul 2023 00:51:48 +0200 Subject: [PATCH] Initialize mTimerDisposeSummonsCorpses in class definition --- apps/openmw/mwmechanics/actors.cpp | 3 --- apps/openmw/mwmechanics/actors.hpp | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/openmw/mwmechanics/actors.cpp b/apps/openmw/mwmechanics/actors.cpp index 2f72d28663..8cdc88549c 100644 --- a/apps/openmw/mwmechanics/actors.cpp +++ b/apps/openmw/mwmechanics/actors.cpp @@ -1164,9 +1164,6 @@ namespace MWMechanics Actors::Actors() : mSmoothMovement(Settings::Manager::getBool("smooth movement", "Game")) { - mTimerDisposeSummonsCorpses - = 0.2f; // We should add a delay between summoned creature death and its corpse despawning - updateProcessingRange(); } diff --git a/apps/openmw/mwmechanics/actors.hpp b/apps/openmw/mwmechanics/actors.hpp index 3b79f65037..f65077b38b 100644 --- a/apps/openmw/mwmechanics/actors.hpp +++ b/apps/openmw/mwmechanics/actors.hpp @@ -179,7 +179,8 @@ namespace MWMechanics std::map mDeathCount; std::list mActors; std::map::iterator> mIndex; - float mTimerDisposeSummonsCorpses; + // We should add a delay between summoned creature death and its corpse despawning + float mTimerDisposeSummonsCorpses = 0.2f; float mTimerUpdateHeadTrack = 0; float mTimerUpdateEquippedLight = 0; float mTimerUpdateHello = 0;