Skip to content

Commit

Permalink
Check the Type.
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelIT7 committed Nov 18, 2023
1 parent 9562112 commit f57fae0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/lua_threaded.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ LUA_FUNCTION(LuaThread_CreateInterface)

LUA_FUNCTION(LuaThread_CloseInterface)
{
CheckType(LUA, 1);
LUA_ILuaInterface* obj = GetUserdata(LUA, 1);

double id = obj->ID;
Expand Down

0 comments on commit f57fae0

Please sign in to comment.