Skip to content

Commit

Permalink
Only complain about commodity graphics if they have a price.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Dec 1, 2015
1 parent bb37ce8 commit feb3aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/economy.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static int commodity_parse( Commodity *temp, xmlNodePtr parent )
continue;
}
} while (xml_nextNode(node));
if (temp->gfx_store == NULL) {
if ((temp->gfx_store == NULL) && (temp->price>0)) {
WARN("No <gfx_store> node found, using default texture for commodity \"%s\"", temp->name);
temp->gfx_store = gl_newImage( COMMODITY_GFX_PATH"_default.png", 0 );
}
Expand Down

0 comments on commit feb3aa5

Please sign in to comment.