From 5649f2ecae088793fb87445a26b82f4d7451bc89 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Tue, 29 Oct 2024 17:58:38 +0100 Subject: Fixed storing of player relations There were two issues here. First, the loading of the relations was triggering a storing of the settings before they were loaded. In effect, all the related settings were reset on every startup. And since storing of the relations wasn't enabled by default, they were always cleared. Second problem was in `PlayerConfSerialiser::readConfigItem`, which was never setting any relation because of an inverted condition introduced in 9a702e64449ba54fab28706c5b9c5ff9f2a41f8a. --- src/playerrelations.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/playerrelations.h') diff --git a/src/playerrelations.h b/src/playerrelations.h index 45102fd9..2a43675e 100644 --- a/src/playerrelations.h +++ b/src/playerrelations.h @@ -94,11 +94,6 @@ public: */ void init(); - /** - * Load configuration from our config file, or substitute defaults. - */ - void load(); - /** * Save configuration to our config file. */ -- cgit v1.2.3-70-g09d2