mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
yup, more
This commit is contained in:
parent
13f394b161
commit
f0c200120c
1 changed files with 5 additions and 0 deletions
|
@ -110,11 +110,16 @@ IE_Translation_Table_Create ()
|
|||
void
|
||||
IE_Translation_Table_Modify (ie_translation_table_t *table, int offset, ie_event_t *event)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (offset >= table->maxevents) {
|
||||
i = table->maxevents;
|
||||
table->maxevents++;
|
||||
table->events = realloc (table->events, sizeof (ie_translation_table_t *) * table->maxevents);
|
||||
if (!table->events)
|
||||
Sys_Error ("IE_Translation_Table_Modify: memory allocation failure");
|
||||
for (; i < table->maxevents; i++)
|
||||
table->events[i] = 0;
|
||||
}
|
||||
table->events[offset] = event;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue