summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-19 20:33:35 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-19 20:33:35 +0000
commite40f18144353a58e9d433fcba000d862b240e34f (patch)
tree4eb803c146348ebdc37d93b7a2c117a209db5818 /src/map/script.c
parentfcf36ede4febcb956a6685f666e21b64659d38e1 (diff)
downloadhercules-e40f18144353a58e9d433fcba000d862b240e34f.tar.gz
hercules-e40f18144353a58e9d433fcba000d862b240e34f.tar.bz2
hercules-e40f18144353a58e9d433fcba000d862b240e34f.tar.xz
hercules-e40f18144353a58e9d433fcba000d862b240e34f.zip
- Fixed the setting hom_setting not being read at all.
- Minor cleanups git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9525 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 90a657075..dca64002c 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -7452,11 +7452,8 @@ int buildin_getmapguildusers(struct script_state *st) {
if (g){
for(i = 0; i < g->max_member; i++)
{
- if (g->member[i].sd )
- {
- if(g->member[i].sd->bl.m == m)
- c++;
- }
+ if (g->member[i].sd && g->member[i].sd->bl.m == m)
+ c++;
}
}