mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Don't type-check against the wrong type :P
This commit is contained in:
parent
afc6605739
commit
861ab93274
1 changed files with 6 additions and 2 deletions
|
@ -414,9 +414,13 @@ emit_methods_list_item (def_t *def, void *data, int index)
|
||||||
method_t *m;
|
method_t *m;
|
||||||
pr_method_t *meth;
|
pr_method_t *meth;
|
||||||
|
|
||||||
if (def->type != &type_method_description)
|
#if 0
|
||||||
internal_error (0, "%s: expected method_descripting def",
|
//FIXME the type is dynamic, so need a way to pass it before it cn be
|
||||||
|
//checked
|
||||||
|
if (def->type != &XXX)
|
||||||
|
internal_error (0, "%s: expected XXX def",
|
||||||
__FUNCTION__);
|
__FUNCTION__);
|
||||||
|
#endif
|
||||||
if (index < 0 || index >= methods->count)
|
if (index < 0 || index >= methods->count)
|
||||||
internal_error (0, "%s: out of bounds index: %d %d",
|
internal_error (0, "%s: out of bounds index: %d %d",
|
||||||
__FUNCTION__, index, methods->count);
|
__FUNCTION__, index, methods->count);
|
||||||
|
|
Loading…
Reference in a new issue