Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Commit

Permalink
Fixed crash when selecting maid
Browse files Browse the repository at this point in the history
  • Loading branch information
Denikson committed Sep 10, 2016
1 parent a7b46b9 commit 3f7f9d0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CM3D2.MaidFiddler.Plugin/Gui/MaidInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1143,15 +1143,17 @@ private void UpdateYotogiClass(int yotogiClass, int _)
Func<string, object> getValue =
value => yotogiClassData.GetType().GetField(value).GetValue(yotogiClassData);
int rowNum = EnumHelper.EnabledYotogiClasses.IndexOf(yotogiClass);
gui.updateYotogiClassField = true;
gui.dataGridView_yotogi_classes[TABLE_COLUMN_HAS, yotogiClass].Value = (bool) getValue("is_have");
gui.dataGridView_yotogi_classes[TABLE_COLUMN_HAS, rowNum].Value = (bool) getValue("is_have");
gui.updateYotogiClassField = true;
gui.dataGridView_yotogi_classes[TABLE_COLUMN_LEVEL, yotogiClass].Value =
gui.dataGridView_yotogi_classes[TABLE_COLUMN_LEVEL, rowNum].Value =
((SimpleExperienceSystem) getValue("exp_system")).GetCurrentLevel();
gui.updateYotogiClassField = true;
gui.dataGridView_yotogi_classes[TABLE_COLUMN_TOTAL_XP, yotogiClass].Value =
gui.dataGridView_yotogi_classes[TABLE_COLUMN_TOTAL_XP, rowNum].Value =
((SimpleExperienceSystem) getValue("exp_system")).GetTotalExp();
gui.updateYotogiClassField = false;
},
Expand Down

0 comments on commit 3f7f9d0

Please sign in to comment.