use correct ItemPT table in Challenge mode

This commit is contained in:
Martin Michelsen
2023-10-20 16:23:23 -07:00
parent bf346d3f95
commit 27734a6944
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ const CommonItemSet::Table<true>& CommonItemSet::get_table(
((mode == GameMode::CHALLENGE) ? "c" : ""),
((episode == Episode::EP2) ? "l" : ""),
tolower(abbreviation_for_difficulty(difficulty)),
secid);
(mode == GameMode::CHALLENGE) ? 0 : secid);
auto data = this->gsl.get(filename);
if (data.second < sizeof(Table<true>)) {
throw runtime_error(string_printf(