Skip to content

Commit 69b37de

Browse files
committed
Fix item mana recharging
Closes #87
1 parent 9212516 commit 69b37de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/magictech.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6604,7 +6604,7 @@ bool magictech_recharge_timeevent_process(TimeEvent* timeevent)
66046604
v4 = v2;
66056605
}
66066606

6607-
diff = mana_store - v4;
6607+
diff = v2 - v4;
66086608
obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, mana_store + v4);
66096609

66106610
parent_obj = obj_field_handle_get(obj, OBJ_F_ITEM_PARENT);

0 commit comments

Comments
 (0)