]> git.stg.codes - stg.git/blobdiff - include/stg/corp_conf.h
Fix fild types in services and corporations
[stg.git] / include / stg / corp_conf.h
index 88a84f1841c51d46f5bfb7520a816cb2032c1bd4..e29a5dcf24bf27934f7ee32ec6f368d274eddae0 100644 (file)
@@ -1,10 +1,15 @@
 #ifndef CORP_CONF_H
 #define CORP_CONF_H
 
+#include <string>
+
 struct CORP_CONF
 {
-string  name;
-double  cash;
+CORP_CONF(const std::string & n) : name(n), cash(0) {}
+CORP_CONF(const std::string & n, double c) : name(n), cash(c) {}
+
+std::string name;
+double      cash;
 };
 
 #endif //CORP_CONF_H