mirror of
https://github.com/tbamud/tbamud.git
synced 2025-09-22 05:50:48 +02:00
Fixed Crash occuring from invalid objects in player object files
This commit is contained in:
parent
80083e16c0
commit
972f6ce2af
2 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,8 @@ Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist)
|
|||
(lots of major bugfixes too)
|
||||
@
|
||||
tbaMUD 3.61
|
||||
[Mar 17 2010] - Fizban
|
||||
Made non-existant objects in pfiles be skipped instead of crashing the MUD (thanks drefs)
|
||||
[Feb 13 2010] - Rumble
|
||||
Removed delete object option in oedit menu.
|
||||
[Feb 08 2010] - Rumble
|
||||
|
|
|
@ -1025,6 +1025,10 @@ obj_save_data *objsave_parse_objects(FILE *fl)
|
|||
if (*line == '#') {
|
||||
/* check for false alarm. */
|
||||
if (sscanf(line, "#%d", &nr) == 1) {
|
||||
if (real_object(nr) == NOTHING) { //object does not exist
|
||||
log("SYSERR: Protection: deleting object %d.", nr);
|
||||
continue;
|
||||
}
|
||||
if (temp) {
|
||||
current->obj = temp;
|
||||
CREATE(current->next, obj_save_data, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue