From 4b5ea066166f2016cc22721a950ab6273d2fa494 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Fri, 30 Dec 2022 19:08:20 +0100 Subject: [PATCH] Add return of ? team --- src/de/steamwar/sql/Team.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/de/steamwar/sql/Team.java b/src/de/steamwar/sql/Team.java index a5af6d8..dc94500 100644 --- a/src/de/steamwar/sql/Team.java +++ b/src/de/steamwar/sql/Team.java @@ -51,6 +51,8 @@ public class Team { private static final Team pub = new Team(0, "PUB", "Öffentlich", "8"); public static Team get(int id) { + if(id == -1) + return new Team(-1, "?", "?", "8"); if(id == 0) return pub; return select.select(id);