From afd890afeafa08367270f07f4017a34eb73a2c51 Mon Sep 17 00:00:00 2001 From: PS Date: Thu, 8 Apr 2021 16:50:45 -1000 Subject: [PATCH] to lower before we hash --- src/app/ss_blumen_lumen/phrase_hue_map.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/ss_blumen_lumen/phrase_hue_map.h b/src/app/ss_blumen_lumen/phrase_hue_map.h index 1bd5d2d..34ef475 100644 --- a/src/app/ss_blumen_lumen/phrase_hue_map.h +++ b/src/app/ss_blumen_lumen/phrase_hue_map.h @@ -85,7 +85,6 @@ PhraseHueMap_GenFromCSV(gscsv_sheet Sheet, gs_memory_arena* Arena) gs_const_string Phrase = CSVSheet_GetCell(Sheet, 0, Row); - u64 PhraseHash = HashDJB2ToU32(StringExpand(Phrase)); gs_const_string Hue0Str = CSVSheet_GetCell(Sheet, 1, Row); gs_const_string Hue1Str = CSVSheet_GetCell(Sheet, 2, Row); @@ -110,6 +109,8 @@ PhraseHueMap_GenFromCSV(gscsv_sheet Sheet, gs_memory_arena* Arena) } } + u64 PhraseHash = HashDJB2ToU32(StringExpand(Result.Phrases[Index])); + Result.PhraseHashes[Index] = PhraseHash; Result.Hue0[Index] = CreateHueFromString(Hue0Str); Result.Hue1[Index] = CreateHueFromString(Hue1Str);