From a9c79242d2cfe15bfb6bfedad1ad827e553fe56c Mon Sep 17 00:00:00 2001 From: Petr Ohlidal Date: Sat, 13 Mar 2021 17:17:48 +0100 Subject: [PATCH] :bug: Fixed 'reload vehicle' not reloading the truck file. --- source/main/GameContext.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/main/GameContext.cpp b/source/main/GameContext.cpp index bc2e9caaa5..21d4b608e1 100644 --- a/source/main/GameContext.cpp +++ b/source/main/GameContext.cpp @@ -289,6 +289,7 @@ void GameContext::ModifyActor(ActorModifyRequest& rq) m_prev_player_actor = nullptr; this->DeleteActor(rq.amr_actor); + entry->actor_def = nullptr; App::GetCacheSystem()->ReLoadResource(*entry); ActorSpawnRequest* srq = new ActorSpawnRequest;