Skip to content

Commit

Permalink
Remove pessimising std::move
Browse files Browse the repository at this point in the history
  • Loading branch information
JGRennison committed Aug 23, 2023
1 parent 4036790 commit 06a08ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openttd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ void InitMusicDriver(bool init_volume)
std::unique_lock<std::mutex> lock(_music_driver_mutex);

static std::unique_ptr<MusicDriver> old_driver;
old_driver = std::move(MusicDriver::ExtractDriver());
old_driver = MusicDriver::ExtractDriver();

DriverFactoryBase::SelectDriver(_music_driver_params, Driver::DT_MUSIC);
}
Expand Down

0 comments on commit 06a08ef

Please sign in to comment.