fix error checking during tile processing
noticed following a patch last night
This commit is contained in:
@@ -215,9 +215,11 @@ tilename(int set, const int file_entry, int gend UNUSED)
|
||||
++condnum) {
|
||||
if (conditionals[condnum].sequence == MON_GLYPH
|
||||
&& conditionals[condnum].predecessor == i) {
|
||||
tilenum += 2;
|
||||
if (tilenum == file_entry)
|
||||
return conditionals[condnum].name;
|
||||
for (k = 0; k < 2; k++) { /* male and female */
|
||||
tilenum++;
|
||||
if (tilenum == file_entry)
|
||||
return conditionals[condnum].name;
|
||||
}
|
||||
}
|
||||
}
|
||||
tilenum++;
|
||||
|
||||
Reference in New Issue
Block a user