fix 11/2000 set data table
This commit is contained in:
+4
-3
@@ -2184,9 +2184,7 @@ pair<uint32_t, uint32_t> SetDataTableDC112000::num_free_roam_variations_for_floo
|
|||||||
|
|
||||||
string SetDataTableDC112000::map_filename_for_variation(
|
string SetDataTableDC112000::map_filename_for_variation(
|
||||||
uint8_t floor, uint32_t var1, uint32_t var2, Episode, GameMode, FilenameType type) const {
|
uint8_t floor, uint32_t var1, uint32_t var2, Episode, GameMode, FilenameType type) const {
|
||||||
if (floor >= this->NAMES.size()) {
|
try {
|
||||||
return "";
|
|
||||||
}
|
|
||||||
string basename = this->NAMES.at(floor).at(var1).at(var2);
|
string basename = this->NAMES.at(floor).at(var1).at(var2);
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case FilenameType::ENEMIES:
|
case FilenameType::ENEMIES:
|
||||||
@@ -2202,6 +2200,9 @@ string SetDataTableDC112000::map_filename_for_variation(
|
|||||||
throw logic_error("invalid map filename type");
|
throw logic_error("invalid map filename type");
|
||||||
}
|
}
|
||||||
return basename;
|
return basename;
|
||||||
|
} catch (const out_of_range&) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const vector<AreaMapFileInfo> map_file_info_dc_nte = {
|
static const vector<AreaMapFileInfo> map_file_info_dc_nte = {
|
||||||
|
|||||||
Reference in New Issue
Block a user