summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-07-06 18:38:16 -0300
committerpanikon <panikon@zoho.com>2014-07-06 18:38:16 -0300
commit79a6bf00d6e91ecdf157b904d82ba8ae92f4d99d (patch)
tree6356b4ba421fc2a124737ad935416678a50ba0e5 /src
parenta1aaa96a17edae63c70a236d7f3402ab46d833a2 (diff)
downloadhercules-79a6bf00d6e91ecdf157b904d82ba8ae92f4d99d.tar.gz
hercules-79a6bf00d6e91ecdf157b904d82ba8ae92f4d99d.tar.bz2
hercules-79a6bf00d6e91ecdf157b904d82ba8ae92f4d99d.tar.xz
hercules-79a6bf00d6e91ecdf157b904d82ba8ae92f4d99d.zip
Fixed issue with getlook
Follow up to 2e6016f, increased MAX_SKILL_TREE in order to fit WE_BABY in Expanded Super Novice
Diffstat (limited to 'src')
-rw-r--r--src/common/mmo.h5
-rw-r--r--src/map/script.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index 6ef5b50f5..fb7bd8963 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -110,9 +110,8 @@
#define MAX_CART 100
#define MAX_SKILL 1478
#define MAX_SKILL_ID 10015 // [Ind/Hercules] max used skill ID
-//Update this max as necessary. 55 is the value needed for Super Baby currently
-//Raised to 84 since Expanded Super Novice needs it.
-#define MAX_SKILL_TREE 84
+// Update this max as necessary. 85 is the value needed for Expanded Super Novice.
+#define MAX_SKILL_TREE 85
#define DEFAULT_WALK_SPEED 150
#define MIN_WALK_SPEED 20 /* below 20 clips animation */
#define MAX_WALK_SPEED 1000
diff --git a/src/map/script.c b/src/map/script.c
index 6ccbf8eaa..9b4842e07 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -13211,6 +13211,8 @@ BUILDIN(getlook)
int type,val;
TBL_PC *sd;
sd=script->rid2sd(st);
+ if( sd == NULL )
+ return false;
type=script_getnum(st,2);
val = -1;