From aa90bc2fbd198ddee9d51d3ea86d8311e177f056 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Fri, 21 Jan 2000 18:34:59 -0800
Subject: [PATCH] bugfix for ::`->

Rev: src/object.c:1.92
---
 src/object.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/object.c b/src/object.c
index e8387dac08..22903c2820 100644
--- a/src/object.c
+++ b/src/object.c
@@ -5,7 +5,7 @@
 \*/
 /**/
 #include "global.h"
-RCSID("$Id: object.c,v 1.91 1999/12/14 23:54:28 mast Exp $");
+RCSID("$Id: object.c,v 1.92 2000/01/22 02:34:59 hubbe Exp $");
 #include "object.h"
 #include "dynamic_buffer.h"
 #include "interpret.h"
@@ -1308,7 +1308,7 @@ void push_magic_index(struct program *type, int inherit_no, int parent_level)
   o=fp->current_object;
   if(!o) error("Illegal magic index call.\n");
   
-  inherit=INHERIT_FROM_INT(fp->context.prog, fp->fun);
+  inherit=INHERIT_FROM_INT(fp->current_object->prog, fp->fun);
 
   while(parent_level--)
   {
-- 
GitLab