diff options
| author | Franklin Wei <git@fwei.tk> | 2016-03-26 20:55:41 -0400 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2016-03-26 20:55:41 -0400 |
| commit | 13052597a19fd2212efb7f51f19ed73b9f4b6ba4 (patch) | |
| tree | 7c7fb9631ed6cb4dcc98426eff528255f48344f5 | |
| parent | 6425388f590f256221c312e06b7d3c82ad3d8893 (diff) | |
| download | netcosm-13052597a19fd2212efb7f51f19ed73b9f4b6ba4.zip netcosm-13052597a19fd2212efb7f51f19ed73b9f4b6ba4.tar.gz netcosm-13052597a19fd2212efb7f51f19ed73b9f4b6ba4.tar.bz2 netcosm-13052597a19fd2212efb7f51f19ed73b9f4b6ba4.tar.xz | |
change to a pointer-based delete
| -rw-r--r-- | worlds/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worlds/test.c b/worlds/test.c index 70d2201..c99fa33 100644 --- a/worlds/test.c +++ b/worlds/test.c @@ -234,7 +234,7 @@ static bool food_drop(struct object_t *obj, user_t *user) send_msg(user, "The bear takes the food and runs away with it. He left something behind.\n"); room_obj_del(user->room, "ferocious bear"); - room_obj_del(user->room, "some food"); + room_obj_del_by_ptr(user->room, obj); struct object_t *new = obj_new("/generic"); new->hidden = false; |