Skip to content

Commit

Permalink
Fix container item crash bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Elime1 committed Aug 12, 2018
1 parent 4269ee6 commit db48aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/container_properties_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void ContainerItemButton::OnAddItem(wxCommandEvent& WXUNUSED(event))
{
FindItemDialog dialog(GetParent(), "Choose Item to add", true);

if(dialog.ShowModal() != 0) {
if(dialog.ShowModal() == wxID_OK) {
Container* container = getParentContainer();
ItemVector& itemVector = container->getVector();

Expand Down

0 comments on commit db48aa6

Please sign in to comment.