From 677398a6421da84823405e07d0755212c9f62a02 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Tue, 15 Nov 2016 21:44:58 +0200 Subject: [PATCH] Don't attempt to overload the cmp metamethod in the comamnd listener type. --- source/Command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Command.cpp b/source/Command.cpp index b7c49dd2..dca59c38 100644 --- a/source/Command.cpp +++ b/source/Command.cpp @@ -1074,7 +1074,7 @@ void Register(HSQUIRRELVM vm) .Ctor< CSStr, CSStr, Array &, Uint8, Uint8, SQInteger, bool, bool >() // Meta-methods .SquirrelFunc(_SC("_typename"), &ListenerTypename::Fn) - .Func(_SC("_cmp"), &Listener::Cmp) + .Func(_SC("cmp"), &Listener::Cmp) .Func(_SC("_tostring"), &Listener::ToString) // Member Properties .Prop(_SC("References"), &Listener::GetRefCount)