mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Check for -1
This commit is contained in:
parent
243452dca3
commit
5b2e66a8ba
@ -101,7 +101,8 @@ namespace NewHorizons.Patches
|
||||
break;
|
||||
default:
|
||||
var key = RemoteHandler.GetPlatformIDKey(id);
|
||||
switch (key.Substring(0, key.IndexOf("_")))
|
||||
var _ = key.IndexOf("_");
|
||||
switch ((_ == -1) ? key : key.Substring(0, _))
|
||||
{
|
||||
case "SS":
|
||||
__result = "SolarSystem";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user