* Fixed small/big monster spawning crashing (mixed up the merge). [Valaris]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/athena@272 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
20416572ab
commit
8cbba34e16
@ -1,5 +1,6 @@
|
|||||||
Date Added
|
Date Added
|
||||||
11/20
|
11/20
|
||||||
|
* Fixed small/big monster spawning crashing (mixed up the merge). [Valaris]
|
||||||
* Fixed crash with upgrading TXT and having more than 256 accounts. [Valaris]
|
* Fixed crash with upgrading TXT and having more than 256 accounts. [Valaris]
|
||||||
* TXT upgrades will convert broken flag to attribute column. [Valaris]
|
* TXT upgrades will convert broken flag to attribute column. [Valaris]
|
||||||
* Prevent use of emotion packet to display red mute emote. [Valaris]
|
* Prevent use of emotion packet to display red mute emote. [Valaris]
|
||||||
|
@ -156,10 +156,6 @@ int mob_once_spawn(struct map_session_data *sd,char *mapname,
|
|||||||
for(count=0;count<amount;count++){
|
for(count=0;count<amount;count++){
|
||||||
md=(struct mob_data *)aCalloc(1,sizeof(struct mob_data));
|
md=(struct mob_data *)aCalloc(1,sizeof(struct mob_data));
|
||||||
memset(md, '\0', sizeof *md);
|
memset(md, '\0', sizeof *md);
|
||||||
if(mob_db[class].mode&0x02)
|
|
||||||
md->lootitem=(struct item *)aCalloc(LOOTITEM_SIZE,sizeof(struct item));
|
|
||||||
else
|
|
||||||
md->lootitem=NULL;
|
|
||||||
|
|
||||||
if(class>4000) { // large/tiny mobs [Valaris]
|
if(class>4000) { // large/tiny mobs [Valaris]
|
||||||
md->size=2;
|
md->size=2;
|
||||||
@ -170,6 +166,11 @@ int mob_once_spawn(struct map_session_data *sd,char *mapname,
|
|||||||
class-=2000;
|
class-=2000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(mob_db[class].mode&0x02)
|
||||||
|
md->lootitem=(struct item *)aCalloc(LOOTITEM_SIZE,sizeof(struct item));
|
||||||
|
else
|
||||||
|
md->lootitem=NULL;
|
||||||
|
|
||||||
mob_spawn_dataset(md,mobname,class);
|
mob_spawn_dataset(md,mobname,class);
|
||||||
md->bl.m=m;
|
md->bl.m=m;
|
||||||
md->bl.x=x;
|
md->bl.x=x;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user