mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 16:48:01 +00:00
Remove check for impossible conditions
#2354 SUBE is never < 0 with the latest change (blank saves behave same as retail saves).
This commit is contained in:
parent
e29da1a8e8
commit
cf0908a21e
2 changed files with 0 additions and 12 deletions
|
@ -296,9 +296,6 @@ namespace PKHeX.Core
|
|||
{
|
||||
get
|
||||
{
|
||||
if (SUBE < 0 || ORASDEMO)
|
||||
return Array.Empty<ushort[]>(); // no gym data
|
||||
|
||||
const int teamsize = 2 * 6; // 2byte/species, 6species/team
|
||||
const int size = teamsize * 8; // 8 gyms
|
||||
int ofs = SUBE - size - 4;
|
||||
|
@ -311,9 +308,6 @@ namespace PKHeX.Core
|
|||
}
|
||||
set
|
||||
{
|
||||
if (SUBE < 0 || ORASDEMO)
|
||||
return; // no gym data
|
||||
|
||||
const int teamsize = 2 * 6; // 2byte/species, 6species/team
|
||||
const int size = teamsize * 8; // 8 gyms
|
||||
int ofs = SUBE - size - 4;
|
||||
|
|
|
@ -206,9 +206,6 @@ namespace PKHeX.Core
|
|||
{
|
||||
get
|
||||
{
|
||||
if (SUBE < 0)
|
||||
return Array.Empty<ushort[]>(); // no gym data
|
||||
|
||||
const int teamsize = 2 * 6; // 2byte/species, 6species/team
|
||||
const int size = teamsize * 8; // 8 gyms
|
||||
int ofs = SUBE - size - 4;
|
||||
|
@ -221,9 +218,6 @@ namespace PKHeX.Core
|
|||
}
|
||||
set
|
||||
{
|
||||
if (SUBE < 0)
|
||||
return; // no gym data
|
||||
|
||||
const int teamsize = 2 * 6; // 2byte/species, 6species/team
|
||||
const int size = teamsize * 8; // 8 gyms
|
||||
int ofs = SUBE - size - 4;
|
||||
|
|
Loading…
Reference in a new issue