From 06a08efa4dd04ce5bc2a42c45402cd65cd6e892d Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 23 Aug 2023 08:45:44 +0100 Subject: [PATCH] Remove pessimising std::move --- src/openttd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openttd.cpp b/src/openttd.cpp index c29678f2dce..67c1a9e0c5c 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1060,7 +1060,7 @@ void InitMusicDriver(bool init_volume) std::unique_lock lock(_music_driver_mutex); static std::unique_ptr old_driver; - old_driver = std::move(MusicDriver::ExtractDriver()); + old_driver = MusicDriver::ExtractDriver(); DriverFactoryBase::SelectDriver(_music_driver_params, Driver::DT_MUSIC); }