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

Comparing deliantra/server/server/apply.C (file contents):
Revision 1.215 by root, Sun Nov 29 09:41:28 2009 UTC vs.
Revision 1.216 by root, Sun Nov 29 17:41:07 2009 UTC

1766 * instead of having their spell stored in stats.sp. These are 1766 * instead of having their spell stored in stats.sp. These are
1767 * legacy spellbooks 1767 * legacy spellbooks
1768 */ 1768 */
1769 if (tmp->slaying) 1769 if (tmp->slaying)
1770 { 1770 {
1771 spell = arch_to_object (find_archetype_by_object_name (tmp->slaying)); 1771 spell = find_archetype_by_object_name (tmp->slaying)->instance ();
1772
1772 if (!spell) 1773 if (!spell)
1773 { 1774 {
1774 op->failmsg (format ("The book's formula for %s is incomplete.", &tmp->slaying)); 1775 op->failmsg (format ("The book's formula for %s is incomplete.", &tmp->slaying));
1775 return; 1776 return;
1776 } 1777 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines