diff options
Diffstat (limited to 'src/levelinfo.cpp')
-rw-r--r-- | src/levelinfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/levelinfo.cpp b/src/levelinfo.cpp index 3a0ef6f..fd147f3 100644 --- a/src/levelinfo.cpp +++ b/src/levelinfo.cpp @@ -21,13 +21,13 @@ void dLevelInfo_c::load(void *buffer) { }
}
-dLevelInfo_c::entry_s *dLevelInfo_c::search(int world, int level) {
+dLevelInfo_c::entry_s *dLevelInfo_c::searchBySlot(int world, int level) {
for (int i = 0; i < sectionCount(); i++) {
section_s *sect = getSectionByIndex(i);
for (int j = 0; j < sect->levelCount; j++) {
entry_s *entry = &getLevelsForSection(sect)[j];
- if (entry->world == world && entry->level == level)
+ if (entry->worldSlot == world && entry->levelSlot == level)
return entry;
}
}
|