summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-10-05 18:05:08 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-10-05 18:05:33 -0700
commit8ddba641874609de6941b00938ff724df26374df (patch)
treef242351e749068cd5b66e63ec20a96874751d699 /src
parent8ee174659f55590430590148825cb43ac0ef2c2a (diff)
downloadtmwa-8ddba641874609de6941b00938ff724df26374df.tar.gz
tmwa-8ddba641874609de6941b00938ff724df26374df.tar.bz2
tmwa-8ddba641874609de6941b00938ff724df26374df.tar.xz
tmwa-8ddba641874609de6941b00938ff724df26374df.zip
Stupid bug in mob summons
Diffstat (limited to 'src')
-rw-r--r--src/map/mob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.cpp b/src/map/mob.cpp
index a525ed4..a5d3eaf 100644
--- a/src/map/mob.cpp
+++ b/src/map/mob.cpp
@@ -2895,7 +2895,7 @@ int mob_summonslave(dumb_ptr<mob_data> md2, int *value_, int amount, int flag)
map_local *m = md2->bl_m;
Species values[5];
- for (count = 0; count < 5 && values[count] != Species(); ++count)
+ for (count = 0; count < 5 && value_[count]; ++count)
values[count] = wrap<Species>(value_[count]);
if (count < 1)
return 0;