Skip to content

Commit 3e836e5

Browse files
Avoid special semantics for nulled strings in flatbuffers (#121)
1 parent a842210 commit 3e836e5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

RLBotCS/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
if (args.Length > 0 && args[0] == "--version")
1010
{
11-
Console.WriteLine("RLBotServer v5.beta.6.11");
11+
Console.WriteLine("RLBotServer v5.beta.6.12");
1212
Environment.Exit(0);
1313
}
1414

RLBotCS/ManagerTools/ConfigValidator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ List<PlayerConfigurationT> players
114114
player.AgentId ??= "psyonix/" + skill; // Not that it really matters
115115

116116
// Apply Psyonix preset loadouts
117-
if (player.Name == null)
117+
if (string.IsNullOrEmpty(player.Name))
118118
{
119119
(player.Name, var preset) = PsyonixLoadouts.GetNext((int)player.Team);
120120
string andPreset = player.Loadout == null ? " and preset" : "";

RLBotCS/ManagerTools/QuickChat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class QuickChat
3939

4040
public void AddChat(MatchCommT matchComm, string name, float gameTime)
4141
{
42-
if (matchComm.Display == null)
42+
if (string.IsNullOrEmpty(matchComm.Display))
4343
return;
4444

4545
_chats.AddLast((gameTime, name, matchComm));

0 commit comments

Comments
 (0)