mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
don't try to create multiple objects for the same protocol
This commit is contained in:
parent
904197c70e
commit
48d9d96005
1 changed files with 5 additions and 0 deletions
|
@ -823,6 +823,11 @@ emit_protocol (protocol_t *protocol)
|
|||
def_t *proto_def;
|
||||
pr_protocol_t *proto;
|
||||
|
||||
proto_def = get_def (type_Protocol.aux_type,
|
||||
va ("_OBJ_PROTOCOL_%s", protocol->name),
|
||||
pr.scope, st_none);
|
||||
if (proto_def)
|
||||
return proto_def;
|
||||
proto_def = get_def (type_Protocol.aux_type,
|
||||
va ("_OBJ_PROTOCOL_%s", protocol->name),
|
||||
pr.scope, st_static);
|
||||
|
|
Loading…
Reference in a new issue