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

Comparing deliantra/server/common/treasure.C (file contents):
Revision 1.20 by root, Tue Sep 26 17:19:38 2006 UTC vs.
Revision 1.21 by root, Wed Sep 27 00:36:08 2006 UTC

458 458
459 /* Don't want to free the object we are about to return */ 459 /* Don't want to free the object we are about to return */
460 tmp = ob->inv; 460 tmp = ob->inv;
461 if (tmp != NULL) 461 if (tmp != NULL)
462 remove_ob (tmp); 462 remove_ob (tmp);
463
463 if (ob->inv) 464 if (ob->inv)
464 {
465 LOG (llevError, "In generate treasure, created multiple objects.\n"); 465 LOG (llevError, "In generate treasure, created multiple objects.\n");
466 } 466
467 free_object (ob); 467 free_object (ob);
468 return tmp; 468 return tmp;
469} 469}
470 470
471/* 471/*
1845 free_artifact (at->next); 1845 free_artifact (at->next);
1846 1846
1847 if (at->allowed) 1847 if (at->allowed)
1848 free_charlinks (at->allowed); 1848 free_charlinks (at->allowed);
1849 1849
1850 at->item->free (1); 1850 at->item->destroy (1);
1851 1851
1852 delete at; 1852 delete at;
1853} 1853}
1854 1854
1855void 1855void
1856free_artifactlist (artifactlist * al) 1856free_artifactlist (artifactlist * al)
1857{ 1857{
1858 artifactlist *nextal; 1858 artifactlist *nextal;
1859 1859
1860 for (al = first_artifactlist; al != NULL; al = nextal) 1860 for (al = first_artifactlist; al; al = nextal)
1861 { 1861 {
1862 nextal = al->next; 1862 nextal = al->next;
1863 1863
1864 if (al->items) 1864 if (al->items)
1865 free_artifact (al->items); 1865 free_artifact (al->items);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines