Skip to content

Commit

Permalink
reserve a few ID buckets in FeatureHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
rtri committed Dec 6, 2016
1 parent 89dbf2f commit 4285bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Sim/Features/FeatureHandler.h
Expand Up @@ -42,7 +42,7 @@ class CFeatureHandler : public spring::noncopyable
CR_DECLARE_STRUCT(CFeatureHandler)

public:
CFeatureHandler() { assert(std::hash<int>{}(12345678) == 12345678); }
CFeatureHandler() { activeFeatureIDs.rehash(128); }
~CFeatureHandler();

CFeature* LoadFeature(const FeatureLoadParams& params);
Expand Down

0 comments on commit 4285bc1

Please sign in to comment.