forked from github/server
display_item hat die falsche info angezeigt.
This commit is contained in:
parent
0360038fc7
commit
73e65e35b2
|
@ -2221,7 +2221,7 @@ display_item(faction *f, unit *u, const item_type * itype)
|
|||
key = mkname("iteminfo", name);
|
||||
info = locale_string(f->locale, key);
|
||||
|
||||
if (info==key) {
|
||||
if (info==key || strcmp(info, key)==0) {
|
||||
sprintf(filename, "%s/%s/items/%s", resourcepath(), locale_name(f->locale), name);
|
||||
fp = fopen(filename, "r");
|
||||
if (!fp) {
|
||||
|
|
Loading…
Reference in New Issue