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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user