Fix setting

This commit is contained in:
Miloslav Ciz 2025-03-10 21:05:40 +01:00
parent 34704a934a
commit c4bd226d8f
5 changed files with 8 additions and 5 deletions

3
game.h
View file

@ -300,7 +300,7 @@ struct
struct
{
int state; ///< -1 if reading external data f., else pos.
int32_t state; ///< -1 if reading external data f., else pos.
// Indices and counts are among the data of the same type.
unsigned int firstItemIndex;
@ -628,6 +628,7 @@ char LCR_gameGetNextDataFileChar(void)
if (c == 0)
{
LCR_appendDataStr("");
c = LCR_getNextDataFileChar();
LCR_game.dataFile.state = c ? -1 : 0; // trust this
}