diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-23 17:49:49 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-23 17:49:49 +0000 |
commit | 594fd91ba12a4c642947fa83a006c31bf99b772e (patch) | |
tree | e845ab38a062d859552c0082c5a7f20ecab4e1d0 /src/map | |
parent | 0d0f3c0c2935e3bd2f093b1195ddb97e99b96190 (diff) | |
download | hercules-594fd91ba12a4c642947fa83a006c31bf99b772e.tar.gz hercules-594fd91ba12a4c642947fa83a006c31bf99b772e.tar.bz2 hercules-594fd91ba12a4c642947fa83a006c31bf99b772e.tar.xz hercules-594fd91ba12a4c642947fa83a006c31bf99b772e.zip |
- Cleaned the initializing for in the hom viewdata to make it overflow-proof.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9700 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/mercenary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mercenary.c b/src/map/mercenary.c index 7e222b016..6cd05926b 100644 --- a/src/map/mercenary.c +++ b/src/map/mercenary.c @@ -995,8 +995,8 @@ int do_init_merc(void) //Stock view data for homuncs memset(&hom_viewdb, 0, sizeof(hom_viewdb)); - for (class_ = HM_CLASS_BASE; class_ <= HM_CLASS_MAX; class_++) - hom_viewdb[class_-HM_CLASS_BASE].class_ = class_; + for (class_ = 0; class_ < sizeof(hom_viewdb)/sizeof(hom_viewdb[0]); class_++) + hom_viewdb[class_].class_ = HM_CLASS_BASE+class_; return 0; } |