aboutsummaryrefslogtreecommitdiffstats
path: root/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'class.c')
-rw-r--r--class.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/class.c b/class.c
index 1dea8b01d9..94ddd7ccf5 100644
--- a/class.c
+++ b/class.c
@@ -913,9 +913,9 @@ move_refined_method(st_data_t key, st_data_t value, st_data_t data)
st_table *tbl = (st_table *) data;
if (me->def->type == VM_METHOD_TYPE_REFINED) {
- if (me->def->body.orig_me) {
- rb_method_entry_t *orig_me = me->def->body.orig_me, *new_me;
- me->def->body.orig_me = NULL;
+ if (me->def->body.refined.orig_me) {
+ rb_method_entry_t *orig_me = me->def->body.refined.orig_me, *new_me;
+ me->def->body.refined.orig_me = NULL;
new_me = rb_method_entry_clone(me);
st_add_direct(tbl, key, (st_data_t) new_me);
rb_method_entry_copy(me, orig_me);