find_status_bar_part() now uses the sb_parts variable rather than the hardcoded number 12 for the number of array elements to search.

This commit is contained in:
OBattler
2017-06-13 16:16:36 +02:00
parent f56bfa5e62
commit fdb24c330f

View File

@@ -693,7 +693,7 @@ int find_status_bar_part(int tag)
return -1;
}
for (i = 0; i < 12; i++)
for (i = 0; i < sb_parts; i++)
{
if (sb_part_meanings[i] == tag)
{