diff options
author | shennetsind <ind@henn.et> | 2013-04-07 14:55:59 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-04-07 14:55:59 -0300 |
commit | 54e8eb8f11a93e6b4248b63cb19d58920860b28d (patch) | |
tree | a385ff66ac2bec3b47f3156ef72023bbbc9342e3 | |
parent | d5b354f1babc72bc8f1b74f0d1e584d0a55c569a (diff) | |
download | hercules-54e8eb8f11a93e6b4248b63cb19d58920860b28d.tar.gz hercules-54e8eb8f11a93e6b4248b63cb19d58920860b28d.tar.bz2 hercules-54e8eb8f11a93e6b4248b63cb19d58920860b28d.tar.xz hercules-54e8eb8f11a93e6b4248b63cb19d58920860b28d.zip |
Fixed @mapinfo venders num
Special Thanks to Lighta
Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r-- | src/map/atcommand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 9dccef177..f52e245ea 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -3839,7 +3839,7 @@ ACMD_FUNC(mapinfo) { iter = mapit_getallusers(); for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) ) { if( pl_sd->mapindex == m_index ) { - if( sd->state.vending ) + if( pl_sd->state.vending ) vend_num++; else if( (cd = (struct chat_data*)map_id2bl(pl_sd->chatID)) != NULL && cd->usersd[0] == pl_sd ) chat_num++; |