rtoss

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/ @ 345  →  / @ 346
/PokemonHackSourceCode/PokemonRomViewer/PokemonRomViewer.cpp
@@ -99,7 +99,7 @@
LPCTSTR szBreed = NULL;
 
wBreed = (WORD)(_tcstoul(szText, 0, 0));
if(wBreed >= BREED_COUNT)
if(wBreed >= BREED_COUNT+g_dwExtraBreeds)
{
wBreed = 0;
}
/PokemonHackSourceCode/PokemonRomViewer/EncDlg.cpp
@@ -458,7 +458,7 @@
DWORD dwEncEntryCount;
EncEntry * pEncEntryList = NULL;
 
if(rom.m_bOpened && wBreed > 0 && wBreed < BREED_COUNT)
if(rom.m_bOpened && wBreed > 0 && wBreed < BREED_COUNT+g_dwExtraBreeds)
{
for(; dwEncType < ENC_PAGE_COUNT; ++dwEncType)
{