RTech: use define for invalid async file handle

This commit is contained in:
Kawe Mazidjatari 2024-01-26 00:03:50 +01:00
parent 7a03238fc9
commit f16bf580f4

View File

@ -72,7 +72,7 @@ void Pak_OpenAssociatedStreamingFiles(PakLoadedInfo_t* const loadedInfo, PakLoad
// make sure we successfully loaded mandatory streaming files, as we
// would otherwise error in the game itself
if (set == STREAMING_SET_MANDATORY && fileNumber == -1)
if (set == STREAMING_SET_MANDATORY && fileNumber == FS_ASYNC_FILE_INVALID)
Error(eDLL_T::RTECH, EXIT_FAILURE, "Error opening streaming file '%s'\n", streamingFilePath);
streamInfo.streamFileNumber[numStreamFiles++] = fileNumber;