Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CF: a patch for server/shop.c
When a player picks up items in a shop and go on the shop carpet,
server can be crashed.
"Server crash" depends on players inventory.
So, today I encountered this bug, while I have played cf0.95.2 about
a month.
The following is a patch for this bug.
------- 8< -------- 8= ----------
*** server/shop.c.org Mon Feb 22 17:27:21 1999
--- server/shop.c Mon Feb 22 17:28:45 1999
***************
*** 336,345 ****
break;
}
}
- }
if (i==NUM_COINS)
LOG(llevError,"in pay_for_item: Did not find string match for %s\n", tmp->arch->name);
}
/* Fill in any gaps in the coin_objs array - needed to make change. */
/* Note that the coin_objs array goes from least value to greatest value */
--- 336,345 ----
break;
}
}
if (i==NUM_COINS)
LOG(llevError,"in pay_for_item: Did not find string match for %s\n", tmp->arch->name);
}
+ }
/* Fill in any gaps in the coin_objs array - needed to make change. */
/* Note that the coin_objs array goes from least value to greatest value */
------- 8< ------- 8= ---------
----------
--------------------------------------------------------------------------
Seikoh Nishita | Dep't. of Information & Computer Sciences
| Faculty of Engineering Science
[e-mail] | Osaka University
s-nisita@ics.es.osaka-u.ac.jp | Toyonaka, Osaka 560, Japan
-
[you can put yourself on the announcement list only or unsubscribe altogether
by sending an email stating your wishes to crossfire-request@ifi.uio.no]