Skip to content

Commit

Permalink
🐛 Fixed 'reload vehicle' not reloading the truck file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp authored and Petr Ohlídal committed Mar 13, 2021
1 parent 9e1230f commit a9c7924
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/main/GameContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a9c7924

Please # to comment.