From bca58546b1354e231b420c88183fb5cd94e86c9e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 9 Dec 2017 23:46:51 -0500 Subject: [PATCH] ac: Correct constructor initialization order The parent class constructor will always run before the class' initializers for member variables. --- src/core/hle/service/ac/ac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/service/ac/ac.cpp b/src/core/hle/service/ac/ac.cpp index ee83dd1fd8..1541969fb5 100644 --- a/src/core/hle/service/ac/ac.cpp +++ b/src/core/hle/service/ac/ac.cpp @@ -170,7 +170,7 @@ void Module::Interface::SetClientVersion(Kernel::HLERequestContext& ctx) { } Module::Interface::Interface(std::shared_ptr ac, const char* name, u32 max_session) - : ac(std::move(ac)), ServiceFramework(name, max_session) {} + : ServiceFramework(name, max_session), ac(std::move(ac)) {} void InstallInterfaces(SM::ServiceManager& service_manager) { auto ac = std::make_shared();