Merge pull request #228 from GaijinEntertainment/fix-temp-sqobjectptr

Fix creating unnecessary temporary object with refcount
This commit is contained in:
Alberto Demichelis
2020-12-14 02:22:20 +08:00
committed by GitHub

View File

@ -12,7 +12,7 @@
#define hashptr(p) ((SQHash)(((SQInteger)p) >> 3))
inline SQHash HashObj(const SQObjectPtr &key)
inline SQHash HashObj(const SQObject &key)
{
switch(sq_type(key)) {
case OT_STRING: return _string(key)->_hash;