From 2c68dd45f08d1c882bab177f4855890cb01922fa Mon Sep 17 00:00:00 2001 From: Kevin Granade Date: Sun, 9 Jun 2024 14:41:08 -0700 Subject: [PATCH] Revert "dereference the std optional" This reverts commit 456277ac1af08110e2058271378c356f0dae6e16. --- src/savegame_json.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/savegame_json.cpp b/src/savegame_json.cpp index ef2232bf3a0ad..aaadb6a822975 100644 --- a/src/savegame_json.cpp +++ b/src/savegame_json.cpp @@ -5048,7 +5048,7 @@ void submap::load( const JsonValue &jv, const std::string &member_name, int vers if( spawn_entry.has_more() ) { spawn_entry.throw_error( "Too many values for spawn" ); } - spawn_point tmp( type, count, p, faction_id, mission_id, friendly, *name ); + spawn_point tmp( type, count, p, faction_id, mission_id, friendly, name ); spawns.push_back( tmp ); } } else if( member_name == "vehicles" ) {