mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +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,7 +462,8 @@ emit_methods (methodlist_t *methods, const char *name, int instance)
|
||||||
warning (0, "Method `%c%s' not implemented",
|
warning (0, "Method `%c%s' not implemented",
|
||||||
m->instance ? '-' : '+', m->name);
|
m->instance ? '-' : '+', m->name);
|
||||||
}
|
}
|
||||||
count++;
|
if (m->def)
|
||||||
|
count++;
|
||||||
}
|
}
|
||||||
if (!count)
|
if (!count)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue