From 2ddddc1cdbf587134cd91d1c44aac1ff165896cb Mon Sep 17 00:00:00 2001 From: AnturK Date: Thu, 17 Sep 2015 15:14:34 +0200 Subject: [PATCH] Fixes spellbook refund issue --- code/game/gamemodes/wizard/spellbook.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/gamemodes/wizard/spellbook.dm b/code/game/gamemodes/wizard/spellbook.dm index 0af6de2a817..3e5c1c56c12 100644 --- a/code/game/gamemodes/wizard/spellbook.dm +++ b/code/game/gamemodes/wizard/spellbook.dm @@ -19,7 +19,7 @@ return 0 return 1 /datum/spellbook_entry/proc/Buy(mob/living/carbon/human/user,obj/item/weapon/spellbook/book) //return 1 on success - if(!S) + if(!S || qdeleted(S)) S = new spell_type() //Check if we got the spell already