diff Indoor.cpp @ 382:a4a5996fea5b

Fixed savelist problem
author Gloval
date Fri, 22 Feb 2013 23:46:31 +0400
parents d720a13e2273
children c3a0d94c07a5
line wrap: on
line diff
--- a/Indoor.cpp	Fri Feb 22 22:27:45 2013 +0400
+++ b/Indoor.cpp	Fri Feb 22 23:46:31 2013 +0400
@@ -4670,8 +4670,8 @@
       if (uItemID)
       {
         if (uItemID != 220 && pItemsTable->pItems[uItemID].uEquipType == EQUIP_POTION &&
-            !p->stru_24._bonus_type)
-          p->stru_24._bonus_type = rand() % 15 + 5;
+            !p->stru_24.uEncantmentType)
+          p->stru_24.uEncantmentType = rand() % 15 + 5;
         pItemsTable->SetSpecialBonus(&p->stru_24);
       }
     }