Skip to content

Commit 8b5ac6b

Browse files
committed
Fix blessing/curse id being used as effect id
Closes #47
1 parent a50c57e commit 8b5ac6b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/game/bless.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void bless_add(int64_t obj, int bless)
186186
obj_arrayfield_int64_set(obj, OBJ_F_PC_BLESSING_TS_IDX, cnt, sub_45A7C0().value);
187187

188188
// Apply the associated effect.
189-
effect_add(obj, bless, EFFECT_CAUSE_BLESS);
189+
effect_add(obj, bless_get_effect(bless), EFFECT_CAUSE_BLESS);
190190

191191
if (player_is_local_pc_obj(obj)) {
192192
mes_file_entry.num = 1000; // "You have received a Blessing!"

src/game/curse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void curse_add(int64_t obj, int curse)
185185
obj_arrayfield_int64_set(obj, OBJ_F_PC_CURSE_TS_IDX, cnt, sub_45A7C0().value);
186186

187187
// Apply the associated effect.
188-
effect_add(obj, curse, EFFECT_CAUSE_CURSE);
188+
effect_add(obj, curse_get_effect(curse), EFFECT_CAUSE_CURSE);
189189

190190
if (player_is_local_pc_obj(obj)) {
191191
mes_file_entry.num = 1000; // "You have received a curse!"

0 commit comments

Comments
 (0)