refactor GameVersion and QuestScriptVersion into a single enum
This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ string Map::Object::str(shared_ptr<const ItemNameIndex> name_index) const {
|
||||
string item_name;
|
||||
try {
|
||||
auto item = ItemCreator::base_item_for_specialized_box(this->param4, this->param5, this->param6);
|
||||
item_name = name_index ? name_index->describe_item(GameVersion::BB, item) : item.hex();
|
||||
item_name = name_index ? name_index->describe_item(Version::BB_V4, item) : item.hex();
|
||||
} catch (const exception& e) {
|
||||
item_name = string_printf("(failed: %s)", e.what());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user