diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/inventory.cpp | 9 | ||||
-rw-r--r-- | src/gui/inventory.h | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp index 9d48f0fb..5c5f5782 100644 --- a/src/gui/inventory.cpp +++ b/src/gui/inventory.cpp @@ -31,6 +31,15 @@ DIALOG inventory_dialog[] = { DIALOG_PLAYER *inventory_player; +TmwInventory::TmwInventory() +{ + show_inventory = false; +} + +TmwInventory::~TmwInventory() +{ +} + /** Initialize inventory */ void TmwInventory::create(int tempxpos, int tempypos) { itemset = load_datafile("./data/graphic/items.dat"); diff --git a/src/gui/inventory.h b/src/gui/inventory.h index fa06f2eb..19b183d2 100644 --- a/src/gui/inventory.h +++ b/src/gui/inventory.h @@ -44,9 +44,9 @@ struct itemHolder { // the holder of a item }; class TmwInventory { - public: - TmwInventory() {}; - ~TmwInventory() {}; + public: + TmwInventory(); + ~TmwInventory(); void create(int x, int y); // create the window void draw(BITMAP *); // draw the window (if areDisplaying != 0 ) |