diff --git a/module/Library/Utils/Dictionary.cpp b/module/Library/Utils/Dictionary.cpp index d3516efc..6e2d29e9 100644 --- a/module/Library/Utils/Dictionary.cpp +++ b/module/Library/Utils/Dictionary.cpp @@ -25,7 +25,7 @@ void Register_Dictionary(HSQUIRRELVM vm, Table & ns) .Func(_SC("Set"), &SqDictionary::Set) .Func(_SC("Clear"), &SqDictionary::Clear) .Func(_SC("Erase"), &SqDictionary::Erase) - .Func(_SC("Exists"), &SqDictionary::Exists) + .Func(_SC("Contains"), &SqDictionary::Contains) .CbFunc(_SC("Each"), &SqDictionary::Each) .CbFunc(_SC("EachWith"), &SqDictionary::EachWith) .CbFunc(_SC("While"), &SqDictionary::While) diff --git a/module/Library/Utils/Dictionary.hpp b/module/Library/Utils/Dictionary.hpp index b9ffe171..10ee5e7f 100644 --- a/module/Library/Utils/Dictionary.hpp +++ b/module/Library/Utils/Dictionary.hpp @@ -234,7 +234,7 @@ struct SqDictionary /* -------------------------------------------------------------------------------------------- * Check whether an element exists. */ - bool Exists(SqKeyHash k) const + bool Contains(SqKeyHash k) const { for (auto & e : mC) {