From 37d4abd60f03f710232c33ac75a0a86d24fd01ef Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 2 Aug 2023 23:05:30 +1000 Subject: [PATCH] Update StarPlayerStorage.cpp --- source/game/StarPlayerStorage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/game/StarPlayerStorage.cpp b/source/game/StarPlayerStorage.cpp index 558d12b..843fc44 100644 --- a/source/game/StarPlayerStorage.cpp +++ b/source/game/StarPlayerStorage.cpp @@ -43,7 +43,7 @@ PlayerStorage::PlayerStorage(String const& storageDir) { Uuid uuid(json.content.getString("uuid")); auto& playerCacheData = m_savedPlayersCache[uuid]; playerCacheData = entityFactory->loadVersionedJson(json, EntityType::Player); - m_playerFileNames.insert(uuid, file.first.rsplit('.').at(0)); + m_playerFileNames.insert(uuid, file.first.rsplit('.', 1).at(0)); } catch (std::exception const& e) { Logger::error("Error loading player file, ignoring! {} : {}", filename, outputException(e, false)); }