From dc4f747af2ddefc9a99651dadd4e460f431578c9 Mon Sep 17 00:00:00 2001 From: res Date: Mon, 17 Dec 2007 02:19:50 +0000 Subject: [PATCH] Fix use of wrong pointer in Q3 shader hash add. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7805 d7cf8633-e32d-0410-b094-e92efae38249 --- model_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model_shared.c b/model_shared.c index a162eda8..5dcafffa 100644 --- a/model_shared.c +++ b/model_shared.c @@ -1151,7 +1151,7 @@ static void Q3Shader_AddToHash (q3shaderinfo_t* shader) q3shader_hash_entry_t* newEntry = (q3shader_hash_entry_t*) Mem_ExpandableArray_AllocRecord (&q3shader_data->hash_entries); - while (entry->chain != NULL) entry = entry->chain; + while (lastEntry->chain != NULL) lastEntry = lastEntry->chain; lastEntry->chain = newEntry; newEntry->chain = NULL; lastEntry = newEntry; -- 2.39.2