summaryrefslogtreecommitdiff
path: root/src/map/homunculus.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-05 22:03:20 +0100
committerHaru <haru@dotalux.com>2015-12-05 22:03:20 +0100
commit079e7ed9d05b5f80f5106a164762ad1d39e64c92 (patch)
tree61ccebe4ef0cb135152f2d4ec96e4af7a14bc3fa /src/map/homunculus.c
parent1eecc1573a82bdcb48799179d156f37dbffba4a8 (diff)
downloadhercules-079e7ed9d05b5f80f5106a164762ad1d39e64c92.tar.gz
hercules-079e7ed9d05b5f80f5106a164762ad1d39e64c92.tar.bz2
hercules-079e7ed9d05b5f80f5106a164762ad1d39e64c92.tar.xz
hercules-079e7ed9d05b5f80f5106a164762ad1d39e64c92.zip
Removed some unnecessary assertions
- Follow-up to 81e0257 Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/homunculus.c')
-rw-r--r--src/map/homunculus.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/map/homunculus.c b/src/map/homunculus.c
index 2490bc659..8d529ea01 100644
--- a/src/map/homunculus.c
+++ b/src/map/homunculus.c
@@ -49,10 +49,9 @@ struct homunculus_interface *homun;
//Returns the viewdata for homunculus
struct view_data* homunculus_get_viewdata(int class_) {
- Assert_retr(NULL, class_ >= HM_CLASS_BASE && class_ - HM_CLASS_BASE < MAX_HOMUNCULUS_CLASS);
- if (homdb_checkid(class_))
- return &homun->dbs->viewdb[class_-HM_CLASS_BASE];
- return NULL;
+ Assert_retr(NULL, homdb_checkid(class_));
+
+ return &homun->dbs->viewdb[class_-HM_CLASS_BASE];
}
enum homun_type homunculus_class2type(int class_) {
@@ -127,7 +126,6 @@ int homunculus_dead(struct homun_data *hd) {
nullpo_retr(3, hd);
sd = hd->master;
- nullpo_retr(3, sd);
clif->emotion(&hd->bl, E_WAH);
//Delete timers when dead.