CalcGrafDataIndex a bit more matching

This commit is contained in:
Dethrace Labs 2025-12-29 06:09:01 -08:00 committed by Dethrace Engineering Department
parent 882d77f1fd
commit da7e45a340
1 changed files with 2 additions and 2 deletions

View File

@ -579,9 +579,9 @@ void CalcGrafDataIndex(void) {
int i;
for (i = 0; i < 2; i++) {
if (gGraf_specs[gGraf_spec_index].total_width == gGraf_data[i].width && gGraf_specs[gGraf_spec_index].total_height == gGraf_data[i].height) {
gReal_graf_data_index = i;
if (gGraf_data[i].width == gGraf_specs[gGraf_spec_index].total_width && gGraf_data[i].height == gGraf_specs[gGraf_spec_index].total_height) {
gGraf_data_index = i;
gReal_graf_data_index = gGraf_data_index;
gCurrent_graf_data = &gGraf_data[i];
return;
}