diff options
Diffstat (limited to '')
-rw-r--r-- | src/levelinfo_old.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/levelinfo_old.cpp b/src/levelinfo_old.cpp index 01dda85..bd5a2eb 100644 --- a/src/levelinfo_old.cpp +++ b/src/levelinfo_old.cpp @@ -21,13 +21,13 @@ void LevelInfo_Prepare(FileHandle *fh) { } } -LevelInfo_Entry *LevelInfo_Search(void *file, int world, int level) { +LevelInfo_Entry *LevelInfo_SearchSlot(void *file, int world, int level) { for (int i = 0; i < LevelInfo_GetSectionCount(file); i++) { LevelInfo_Section *sect = LevelInfo_GetSection(file, i); for (int j = 0; j < sect->levelCount; j++) { LevelInfo_Entry *entry = &LevelInfo_GetLevels(file, sect)[j]; - if (entry->world == world && entry->level == level) + if (entry->worldSlot == world && entry->levelSlot == level) return entry; } } |