diff --git a/include/QF/hash.h b/include/QF/hash.h index 67b17a8d2..90923c0a0 100644 --- a/include/QF/hash.h +++ b/include/QF/hash.h @@ -105,7 +105,9 @@ void *Hash_FindElement (hashtab_t *tab, void *ele); tab: the table to search key: the key string identifying the elements being searched for returns a null terminated list of element pointers if at least one found, - otherwise 0. + otherwise 0. returned list is guaranteed to be in reverse order of + insertion. ie, deleting items from the list in list order will delete the + correct items. */ void **Hash_FindList (hashtab_t *tab, const char *key); void **Hash_FindElementList (hashtab_t *tab, void *ele); diff --git a/libs/util/quakefs.c b/libs/util/quakefs.c index 84e78de8f..8a7bd8b2d 100644 --- a/libs/util/quakefs.c +++ b/libs/util/quakefs.c @@ -1066,7 +1066,7 @@ QFS_LoadGameDirectory (const char *dir) pak = QFS_LoadPackFile (pakfiles[i]); if (!pak) { - Sys_Error (va ("Bad pakfile %s!!", pakfiles[i])); + Sys_Error ("Bad pakfile %s!!", pakfiles[i]); } else { search = calloc (1, sizeof (searchpath_t)); search->pack = pak;