added docs and fixed desc loading from item def

This commit is contained in:
GHOST11111100
2025-07-26 17:58:57 +03:00
parent 59d706323a
commit 0caed92baa
5 changed files with 21 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@ ItemDef::ItemDef(const std::string& name) : name(name) {
}
void ItemDef::cloneTo(ItemDef& dst) {
dst.caption = caption;
dst.description = description;
dst.stackSize = stackSize;
dst.generated = generated;
std::copy(&emission[0], &emission[3], dst.emission);