fix print-item-tables
This commit is contained in:
+1
-4
@@ -2268,10 +2268,7 @@ Action a_print_level_stats(
|
|||||||
Action a_print_item_parameter_tables(
|
Action a_print_item_parameter_tables(
|
||||||
"print-item-tables", nullptr, +[](phosg::Arguments& args) {
|
"print-item-tables", nullptr, +[](phosg::Arguments& args) {
|
||||||
auto s = make_shared<ServerState>(get_config_filename(args));
|
auto s = make_shared<ServerState>(get_config_filename(args));
|
||||||
s->load_patch_indexes(false);
|
s->load_all();
|
||||||
s->load_text_index(false);
|
|
||||||
s->load_item_definitions(false);
|
|
||||||
s->load_item_name_indexes(false);
|
|
||||||
for (Version v : ALL_VERSIONS) {
|
for (Version v : ALL_VERSIONS) {
|
||||||
const auto& index = s->item_name_index_opt(v);
|
const auto& index = s->item_name_index_opt(v);
|
||||||
if (index) {
|
if (index) {
|
||||||
|
|||||||
Reference in New Issue
Block a user