summaryrefslogtreecommitdiff
path: root/src/map/storage.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-05-25 13:49:50 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-05-25 13:49:50 -0700
commit1d0e18a186f67844ccd873eabb56ebdaa3f47f11 (patch)
tree94199c6dbcb6b4a86584c303f6e1e72073873f01 /src/map/storage.hpp
parent87218e07b2bc89593eae1cb4abe859cd1a7eaa0f (diff)
downloadtmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.tar.gz
tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.tar.bz2
tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.tar.xz
tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.zip
Switch block_list and subclasses to dumb_ptr
Now we're well-defined, since we're actually calling ctors and dtors. Most of this code will not survive long ...
Diffstat (limited to 'src/map/storage.hpp')
-rw-r--r--src/map/storage.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/map/storage.hpp b/src/map/storage.hpp
index 1974efb..8f31517 100644
--- a/src/map/storage.hpp
+++ b/src/map/storage.hpp
@@ -4,15 +4,17 @@
#ifndef STORAGE_HPP
#define STORAGE_HPP
-int storage_storageopen(struct map_session_data *sd);
-int storage_storageadd(struct map_session_data *sd, int index, int amount);
-int storage_storageget(struct map_session_data *sd, int index, int amount);
-int storage_storageclose(struct map_session_data *sd);
+#include "map.hpp"
+
+int storage_storageopen(dumb_ptr<map_session_data> sd);
+int storage_storageadd(dumb_ptr<map_session_data> sd, int index, int amount);
+int storage_storageget(dumb_ptr<map_session_data> sd, int index, int amount);
+int storage_storageclose(dumb_ptr<map_session_data> sd);
void do_init_storage(void);
void do_final_storage(void);
struct storage *account2storage(int account_id);
struct storage *account2storage2(int account_id);
-int storage_storage_quit(struct map_session_data *sd);
+int storage_storage_quit(dumb_ptr<map_session_data> sd);
int storage_storage_save(int account_id, int final);
int storage_storage_saved(int account_id);