Skip to content

Commit

Permalink
Fix Doodad brush
Browse files Browse the repository at this point in the history
  • Loading branch information
Mignari committed Jun 26, 2023
1 parent a06f923 commit 7b303f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/doodad_brush.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ bool DoodadBrush::loadAlternative(pugi::xml_node node, wxArrayString& warnings,
}

ItemType* type = g_items.getRawItemType(item->getID());
if(!type) {
if(type) {
type->doodad_brush = this;
}

Expand Down Expand Up @@ -152,7 +152,7 @@ bool DoodadBrush::loadAlternative(pugi::xml_node node, wxArrayString& warnings,
items.push_back(item);

ItemType* type = g_items.getRawItemType(item->getID());
if(!type) {
if(type) {
type->doodad_brush = this;
}
}
Expand Down

0 comments on commit 7b303f3

Please sign in to comment.