From e463be784f2ea3dfcc5786977c319a9228a8a6d7 Mon Sep 17 00:00:00 2001 From: Greg Edwards Date: Fri, 29 Aug 2014 17:43:45 -0400 Subject: [PATCH] Return error 400 instead of padding with 0s on G5 battle subway. --- gts/syachi2ds.ashx.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gts/syachi2ds.ashx.cs b/gts/syachi2ds.ashx.cs index 0881ad69..d2ab2b98 100644 --- a/gts/syachi2ds.ashx.cs +++ b/gts/syachi2ds.ashx.cs @@ -553,10 +553,9 @@ namespace PkmnFoundations.GTS if (opponents.Length != 7) { - // todo: Instead of failing, add fake trainers - // to pad the results up to 7. - response.Write(new byte[] { 0x00, 0x00 }, 0, 2); - break; + // todo: Implement fake trainers on Gen5 too. + Error400(context); + return; } BattleSubwayProfile5[] leaders = DataAbstract.Instance.BattleSubwayGetLeaders5(rank, roomNum);