From 8dce46741704327ea62cafd456b407f29d4f1f5c Mon Sep 17 00:00:00 2001 From: "ulukyn@gmail.com" Date: Tue, 10 Jan 2017 12:35:53 +0100 Subject: [PATCH] Fixed: Scenographic Editor crash the client (revert bad commit of actions.h) --HG-- branch : compatibility-develop --- code/ryzom/client/src/actions.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/ryzom/client/src/actions.h b/code/ryzom/client/src/actions.h index 51499f43e..b177c1818 100644 --- a/code/ryzom/client/src/actions.h +++ b/code/ryzom/client/src/actions.h @@ -281,16 +281,16 @@ public: // HashMapTraits for NLMISC::TKey struct CTKeyHashMapTraits { - //enum { bucket_size = 4, min_buckets = 8, }; - //CTKeyHashMapTraits() { } + enum { bucket_size = 4, min_buckets = 8, }; + CTKeyHashMapTraits() { } size_t operator() (NLMISC::TKey key) const { - return static_cast(key); + return (size_t)key; } - /*bool operator() (NLMISC::TKey key1, NLMISC::TKey key2) const + bool operator() (NLMISC::TKey key1, NLMISC::TKey key2) const { return key1 < key2; - }*/ + } }; /**