diff --git a/src/common/runtime.h b/src/common/runtime.h index 08c6080bf..308672b38 100644 --- a/src/common/runtime.h +++ b/src/common/runtime.h @@ -514,7 +514,7 @@ T *luax_optmodule(lua_State *L, love::Type &type) * @param type The type of the object. **/ template -T *luax_totype(lua_State *L, int idx, love::Type /*type*/) +T *luax_totype(lua_State *L, int idx, love::Type& /*type*/) { T *o = (T *)(((Proxy *)lua_touserdata(L, idx))->object); diff --git a/src/common/types.h b/src/common/types.h index 6dc368646..33429cad2 100644 --- a/src/common/types.h +++ b/src/common/types.h @@ -39,6 +39,7 @@ public: // TODO: Type-checking templated constructor Type(Type *parent); + Type(const Type&) = delete; uint32_t getId(); bool isa(const uint32_t &other);