Skip to content

Commit

Permalink
Fix INF infinite loading loop in lasthope.
Browse files Browse the repository at this point in the history
  • Loading branch information
luciusDXL committed Sep 28, 2024
1 parent c844864 commit d9ad79a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TheForceEngine/TFE_Jedi/InfSystem/infSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,7 @@ namespace TFE_Jedi
break;
default:
// Invalid type.
parser.readLine(bufferPos);
return false;
};
// index is mapped to a type internally.
Expand Down Expand Up @@ -853,6 +854,7 @@ namespace TFE_Jedi
break;
default:
// Invalid type.
parser.readLine(bufferPos);
return false;
}

Expand Down Expand Up @@ -1303,7 +1305,7 @@ namespace TFE_Jedi

// Then loop through all of the items and parse their classes.
s32 wallNum = 0;
for (s32 i = 0; i < itemCount; i++)
for (s32 i = 0; i < itemCount && line; i++)
{
line = parser.readLine(bufferPos);
if (!line)
Expand Down

0 comments on commit d9ad79a

Please sign in to comment.