mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
make private methods work properly and put overided methods into the
correct class
This commit is contained in:
parent
1b5bf9d176
commit
8e21ecd4d9
1 changed files with 6 additions and 1 deletions
|
@ -419,7 +419,7 @@ class_find_method (class_type_t *class_type, method_t *method)
|
|||
m->params->type = start_class->type;
|
||||
else
|
||||
m->params->type = &type_Class;
|
||||
add_method (methods, m);
|
||||
add_method (start_methods, m);
|
||||
}
|
||||
return m;
|
||||
}
|
||||
|
@ -435,6 +435,11 @@ class_find_method (class_type_t *class_type, method_t *method)
|
|||
method->instance ? '-' : '+',
|
||||
sel->str, class_name,
|
||||
category_name ? va (" (%s)", category_name) : "");
|
||||
add_method (start_methods, method);
|
||||
if (method->instance)
|
||||
method->params->type = start_class->type;
|
||||
else
|
||||
method->params->type = &type_Class;
|
||||
}
|
||||
dstring_delete (sel);
|
||||
return method;
|
||||
|
|
Loading…
Reference in a new issue