mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-14 17:33:25 +00:00
Add ctors.
This commit is contained in:
parent
0bfc58e4a9
commit
c4832522dc
1 changed files with 7 additions and 0 deletions
|
|
@ -27,6 +27,13 @@ struct mmo_storage2 {
|
|||
float sell_price;
|
||||
float unk[8];
|
||||
uint32_t unk1;
|
||||
|
||||
map_good() = default;
|
||||
map_good(const std::string &name, const std::string &condition = {}) {
|
||||
*this = map_good{};
|
||||
strcpy(this->name, name.c_str());
|
||||
strcpy(this->cond, condition.c_str());
|
||||
}
|
||||
};
|
||||
|
||||
// our own data
|
||||
|
|
|
|||
Loading…
Reference in a new issue