X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0a5045398fd1810d585c00d1e0a6700648c43195..d25555ce9c6e09344356868780e678c75bbbd164:/include/stg/corp_conf.h diff --git a/include/stg/corp_conf.h b/include/stg/corp_conf.h index e29a5dcf..d6cc2ebb 100644 --- a/include/stg/corp_conf.h +++ b/include/stg/corp_conf.h @@ -5,6 +5,7 @@ struct CORP_CONF { +CORP_CONF() : name(), cash(0) {} CORP_CONF(const std::string & n) : name(n), cash(0) {} CORP_CONF(const std::string & n, double c) : name(n), cash(c) {} @@ -12,4 +13,10 @@ std::string name; double cash; }; +inline +bool operator==(const CORP_CONF & a, const CORP_CONF & b) +{ +return a.name == b.name; +} + #endif //CORP_CONF_H