Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修正部分报错log中item id的数值溢出问题 #762

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions conf/msg_conf/translation_cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2538,9 +2538,9 @@ Body:
Translation: ""
- Original: "Unknown item \"%s\".\n"
Translation: ""
- Original: "Unknown item ID %hu in Item Properties Database.\n"
- Original: "Unknown item ID %u in Item Properties Database.\n"
Translation: ""
- Original: "Unknown item ID %hu in MobItem Fixed Ratio Database.\n"
- Original: "Unknown item ID %u in MobItem Fixed Ratio Database.\n"
Translation: ""
- Original: "Unknown item type \"%s\".\n"
Translation: ""
Expand Down
4 changes: 2 additions & 2 deletions conf/msg_conf/translation_tw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2538,9 +2538,9 @@ Body:
Translation: ""
- Original: "Unknown item \"%s\".\n"
Translation: ""
- Original: "Unknown item ID %hu in Item Properties Database.\n"
- Original: "Unknown item ID %u in Item Properties Database.\n"
Translation: ""
- Original: "Unknown item ID %hu in MobItem Fixed Ratio Database.\n"
- Original: "Unknown item ID %u in MobItem Fixed Ratio Database.\n"
Translation: ""
- Original: "Unknown item type \"%s\".\n"
Translation: ""
Expand Down
2 changes: 1 addition & 1 deletion src/map/itemprops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ uint64 ItemProperties::parseBodyNode(const ryml::NodeRef& node) {
}

if (!item_db.exists(nameid)) {
this->invalidWarning(node, "Unknown item ID %hu in Item Properties Database.\n", nameid);
this->invalidWarning(node, "Unknown item ID %u in Item Properties Database.\n", nameid);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion src/map/mobdrop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ uint64 MobItemFixedRatioDB::parseBodyNode(const ryml::NodeRef& node) {
}

if (!item_db.exists(nameid)) {
this->invalidWarning(node, "Unknown item ID %hu in MobItem Fixed Ratio Database.\n", nameid);
this->invalidWarning(node, "Unknown item ID %u in MobItem Fixed Ratio Database.\n", nameid);
return 0;
}

Expand Down
Loading