mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'fix-eggtv-names-and-crash' into 'master'
Fix Egg TV replay names being wrong, fix crash if your replay name was 1 character Closes #267 and #110 See merge request kart-krew-dev/ring-racers!64
This commit is contained in:
commit
d37590f84c
1 changed files with 1 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ EggTVData::Replay::Replay(Folder::Cache::ReplayRef& ref) : ref_(&ref)
|
||||||
const std::string_view str = info.title;
|
const std::string_view str = info.title;
|
||||||
const std::size_t mid = str.find(kDelimiter);
|
const std::size_t mid = str.find(kDelimiter);
|
||||||
|
|
||||||
title_ = Title(str.substr(0, mid), mid == srb2::String::npos ? "" : str.substr(mid + kDelimiter.size()));
|
title_ = Title(str.substr(0, mid), mid == std::string::npos ? "" : str.substr(mid + kDelimiter.size()));
|
||||||
//title_ = Title("WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW", "WWWWWWWWWWWWWWWWWWWWWWWWWWW");
|
//title_ = Title("WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW", "WWWWWWWWWWWWWWWWWWWWWWWWWWW");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue