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.37 by root, Tue Sep 12 20:55:40 2006 UTC vs.
Revision 1.38 by root, Wed Sep 13 01:09:24 2006 UTC

888 888
889void object::unlink () 889void object::unlink ()
890{ 890{
891 count = 0; 891 count = 0;
892 892
893 if (this == objects)
894 objects = next;
895
893 /* Remove this object from the list of used objects */ 896 /* Remove this object from the list of used objects */
894 if (prev) 897 if (prev)
895 { 898 {
896 prev->next = next; 899 prev->next = next;
897 prev = 0; 900 prev = 0;
900 if (next) 903 if (next)
901 { 904 {
902 next->prev = prev; 905 next->prev = prev;
903 next = 0; 906 next = 0;
904 } 907 }
905
906 if (this == objects)
907 objects = next;
908} 908}
909 909
910object *object::create () 910object *object::create ()
911{ 911{
912 object *op; 912 object *op;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines