mirror of
https://github.com/kwsch/pkNX.git
synced 2026-09-07 18:15:15 -05:00
Fix slot deletion
empty value is null for whatever reason, just force the end result to be 0. https://projectpokemon.org/home/forums/topic/48647-pknx-nintendo-switch-rom-editor-randomizer/?do=findComment&comment=239245
This commit is contained in:
@@ -119,7 +119,7 @@ public void SaveCurrent()
|
||||
|
||||
private void SaveRow(int row, EncounterSlot s)
|
||||
{
|
||||
int sp = Array.IndexOf(species, dgv.Rows[row].Cells[1].Value);
|
||||
int sp = Array.IndexOf(species, dgv.Rows[row].Cells[1].Value ?? species[0]);
|
||||
string formstr = (dgv.Rows[row].Cells[2].Value ?? 0).ToString();
|
||||
int.TryParse(formstr, out var form);
|
||||
string probstr = (dgv.Rows[row].Cells[3].Value ?? 0).ToString();
|
||||
|
||||
Reference in New Issue
Block a user