mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Do not count unimplemented methods.
The method emitter skips unimplemented methods, so counting them when figuring out how many methods to emit leads to a segfault.
This commit is contained in:
parent
e04ed72afa
commit
993bee4f59
1 changed files with 2 additions and 1 deletions
|
@ -462,6 +462,7 @@ emit_methods (methodlist_t *methods, const char *name, int instance)
|
|||
warning (0, "Method `%c%s' not implemented",
|
||||
m->instance ? '-' : '+', m->name);
|
||||
}
|
||||
if (m->def)
|
||||
count++;
|
||||
}
|
||||
if (!count)
|
||||
|
|
Loading…
Reference in a new issue