ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/object.C
(Generate patch)

Comparing deliantra/server/common/object.C (file contents):
Revision 1.53 by root, Tue Nov 7 16:30:54 2006 UTC vs.
Revision 1.54 by root, Fri Nov 17 19:40:53 2006 UTC

412 */ 412 */
413 413
414object * 414object *
415find_object (tag_t i) 415find_object (tag_t i)
416{ 416{
417 object *op;
418
419 for (op = object::first; op != NULL; op = op->next) 417 for (object *op = object::first; op; op = op->next)
420 if (op->count == i) 418 if (op->count == i)
421 break; 419 return op;
422 420
423 return op; 421 return 0;
424} 422}
425 423
426/* 424/*
427 * Returns the first object which has a name equal to the argument. 425 * Returns the first object which has a name equal to the argument.
428 * Used only by the patch command, but not all that useful. 426 * Used only by the patch command, but not all that useful.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines