Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-11-13 22:25:09 +0000
committerStijn Buys <ingar@osirion.org>2009-11-13 22:25:09 +0000
commita993d31910b63a1f897e470842934e6ffefad32c (patch)
treefef52482d762acbbd35e97f382b60ff24ce5071f /src/game/base/commodity.cc
parent5ddb64795cc959916eeedbec8dc3f65c06f49698 (diff)
added core::InfoType, refactored game::ShipModel as core::Info subclass, introduced core::Label
Diffstat (limited to 'src/game/base/commodity.cc')
-rw-r--r--src/game/base/commodity.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/base/commodity.cc b/src/game/base/commodity.cc
index a9eb8c8..d41d370 100644
--- a/src/game/base/commodity.cc
+++ b/src/game/base/commodity.cc
@@ -4,6 +4,7 @@
the terms and conditions of the GNU General Public License version 2
*/
+#include "base/game.h"
#include "base/commodity.h"
#include "auxiliary/functions.h"
#include "sys/sys.h"
@@ -13,8 +14,11 @@ namespace game
/* ---- class Commodity -------------------------------------------- */
+core::InfoType *Commodity::commodity_infotype = 0;
+
Commodity::Commodity() : core::Info()
{
+ set_type(commodity_infotype);
}
Commodity::~Commodity()