From ce99fabe1396ed2956dc7ecb468760ef88f98765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 23 May 2015 16:07:47 +0200 Subject: GH-992 Add a transaction/locking mechanism to settings objects This can cut the FTB loading by ~66% - worth it, but not ideal. Real solution will have to be implemented later. --- logic/BaseInstance.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'logic/BaseInstance.h') diff --git a/logic/BaseInstance.h b/logic/BaseInstance.h index 6a8ba11c..4c547a77 100644 --- a/logic/BaseInstance.h +++ b/logic/BaseInstance.h @@ -132,7 +132,7 @@ public: * This settings object stores instance-specific settings. * \return A pointer to this instance's settings object. */ - virtual SettingsObject &settings() const; + virtual SettingsObjectPtr settings() const; /// returns a valid update task virtual std::shared_ptr doUpdate() = 0; -- cgit v1.2.3