From b21f49ad6b2c3f7a22690254321776a0b15c2fed Mon Sep 17 00:00:00 2001 From: aap Date: Sat, 16 May 2020 12:51:54 +0200 Subject: fixed CText to be 64 bit compatible --- src/text/Text.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/text/Text.h') diff --git a/src/text/Text.h b/src/text/Text.h index 4255e2a5..18a904bc 100644 --- a/src/text/Text.h +++ b/src/text/Text.h @@ -9,7 +9,11 @@ void TextCopy(wchar *dst, const wchar *src); struct CKeyEntry { +#ifdef FIX_BUGS + uint32 valueOffset; +#else wchar *value; +#endif char key[8]; }; @@ -28,7 +32,11 @@ public: void Unload(void); void Update(wchar *chars); CKeyEntry *BinarySearch(const char *key, CKeyEntry *entries, int16 low, int16 high); +#ifdef FIX_BUGS + wchar *Search(const char *key, wchar *data); +#else wchar *Search(const char *key); +#endif }; class CData -- cgit v1.2.3