[Lua] Fix type resolution between SWIG-wrapped modules

See #2126
This commit is contained in:
Olly Betts 2022-10-19 07:29:06 +13:00 • committed by Olly Betts
commit a5bc48afea
3 changed files with 17 additions and 1 deletions

View file

@ -1789,7 +1789,7 @@ SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State *L,int index,void **ptr,swig_type
}
else
{
cast=SWIG_TypeCheckStruct(usr->type,type); /* performs normal type checking */
cast=SWIG_TypeCheck(usr->type->name,type); /* performs normal type checking */
if (cast)
{
int newmemory = 0;