summaryrefslogtreecommitdiff
path: root/src/map/instance.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-01 17:03:58 -0300
committershennetsind <ind@henn.et>2013-07-01 17:03:58 -0300
commit8de3c1118a6a7a235cc7a3e77f24b0c4c5c397ae (patch)
tree19f4867edc832db018feb79f51f501b3cd970d9b /src/map/instance.c
parentc1401ff17207e9c2aac551066f0bd90928dd90bb (diff)
downloadhercules-8de3c1118a6a7a235cc7a3e77f24b0c4c5c397ae.tar.gz
hercules-8de3c1118a6a7a235cc7a3e77f24b0c4c5c397ae.tar.bz2
hercules-8de3c1118a6a7a235cc7a3e77f24b0c4c5c397ae.tar.xz
hercules-8de3c1118a6a7a235cc7a3e77f24b0c4c5c397ae.zip
Fixed Bug #7216
Special Thanks to Shikazu, wouldn't have been able to identify this issue without his help! http://hercules.ws/board/index.php?app=tracker&showissue=7216 Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/instance.c')
-rw-r--r--src/map/instance.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/instance.c b/src/map/instance.c
index 6b80f5d75..9207c1d53 100644
--- a/src/map/instance.c
+++ b/src/map/instance.c
@@ -25,6 +25,8 @@
#include <stdarg.h>
#include <time.h>
+struct instance_interface instance_s;
+
/// Checks whether given instance id is valid or not.
bool instance_is_valid(int instance_id) {
if( instance_id < 0 || instance_id >= instance->instances ) {// out of range