fix setValue for HashTable

This commit is contained in:
Alexandru Bagu 2021-06-25 11:27:05 +03:00 committed by akallabeth
parent 8eff825971
commit 9c259f09ec

View File

@ -252,7 +252,7 @@ static INLINE void setValue(wHashTable* table, wKeyValuePair* pair, const void*
if (!pair)
return;
disposeValue(table, pair->value);
if (table->key.fnObjectNew)
if (table->value.fnObjectNew)
pair->value = table->value.fnObjectNew(value);
else
pair->value = (void*)value;