Fixed a little bug in event enqueue code

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9102 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
toms 2006-10-30 21:30:02 +00:00
parent 81a1ad5244
commit 8fb29cb951
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/10/30 2006/10/30
* Fixed a little bug in event enqueue code [Toms]
* Updated the code so mobs can use ChainAction as a targetted skill. * Updated the code so mobs can use ChainAction as a targetted skill.
[Skotlex] [Skotlex]
* Added GroundDrift effects for Wind (Stun) and Fire (knockback). The * Added GroundDrift effects for Wind (Stun) and Fire (knockback). The

View File

@ -790,7 +790,7 @@ int npc_event_sub(struct map_session_data *sd, struct event_data *ev, const unsi
if ( sd->npc_id!=0) { if ( sd->npc_id!=0) {
//Enqueue the event trigger. //Enqueue the event trigger.
int i; int i;
for(i=0;i<MAX_EVENTQUEUE && sd->eventqueue[i][0];i++) for(i=0;i<MAX_EVENTQUEUE && sd->eventqueue[i][0];i++);
if (i==MAX_EVENTQUEUE) { if (i==MAX_EVENTQUEUE) {
if (battle_config.error_log) if (battle_config.error_log)