don't barf on protocols that are used by multiple classes in the same object file.

This commit is contained in:
Bill Currie 2006-12-19 12:17:42 +00:00 committed by Jeff Teunissen
parent e52633c492
commit d084264c3a

View file

@ -504,7 +504,8 @@ obj_init_protocols (progs_t *pr, pr_protocol_list_t *protos)
obj_init_protocols (pr, &G_STRUCT (pr, pr_protocol_list_t,
proto->protocol_list));
} else {
PR_RunError (pr, "protocol broken");
if (proto->class_pointer != PR_SetPointer (pr, proto_class))
PR_RunError (pr, "protocol broken");
}
}
}