mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Set instace_size to the correct size.
This commit is contained in:
parent
4432bc0bef
commit
b95cdc33d9
1 changed files with 1 additions and 1 deletions
|
@ -696,7 +696,7 @@ finish_class (class_t *class)
|
|||
EMIT_DEF (space, meta->methods, emit_methods (class->methods,
|
||||
class->name, 0));
|
||||
|
||||
cls->instance_size = class->ivars ? class->ivars->size : 0;
|
||||
cls->instance_size = type_size (class->type);
|
||||
EMIT_DEF (space, cls->ivars, emit_ivars (class->ivars, class->name));
|
||||
EMIT_DEF (space, cls->methods, emit_methods (class->methods,
|
||||
class->name, 1));
|
||||
|
|
Loading…
Reference in a new issue