Skip to content

Commit 7b303f3

Browse files
committed
Fix Doodad brush
1 parent a06f923 commit 7b303f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/doodad_brush.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ bool DoodadBrush::loadAlternative(pugi::xml_node node, wxArrayString& warnings,
9494
}
9595

9696
ItemType* type = g_items.getRawItemType(item->getID());
97-
if(!type) {
97+
if(type) {
9898
type->doodad_brush = this;
9999
}
100100

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

154154
ItemType* type = g_items.getRawItemType(item->getID());
155-
if(!type) {
155+
if(type) {
156156
type->doodad_brush = this;
157157
}
158158
}

0 commit comments

Comments
 (0)