File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ GMOD_MODULE_OPEN( )
1515
1616GMOD_MODULE_CLOSE ( )
1717{
18- if ( luaopen_mime_core ( LUA->state ) == 1 )
19- LUA->SetField ( GarrysMod::Lua::INDEX_GLOBAL, " mime" );
20-
18+ LUA->PushNil ( );
19+ LUA->SetField ( GarrysMod::Lua::INDEX_GLOBAL, " mime" );
2120 return 0 ;
2221}
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ GMOD_MODULE_OPEN( )
99
1010 if ( luaopen_socket_serial ( LUA->state ) == 1 )
1111 {
12- lua_replace ( state, 1 );
13- lua_settop ( state, 1 );
12+ lua_replace ( LUA-> state , 1 );
13+ lua_settop ( LUA-> state , 1 );
1414 LUA->Push ( -1 );
1515 LUA->SetField ( -3 , " serial" );
1616 }
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ GMOD_MODULE_OPEN( )
99
1010 if ( luaopen_socket_unix ( LUA->state ) == 1 )
1111 {
12- lua_replace ( state, 1 );
13- lua_settop ( state, 1 );
12+ lua_replace ( LUA-> state , 1 );
13+ lua_settop ( LUA-> state , 1 );
1414 LUA->Push ( -1 );
1515 LUA->SetField ( -3 , " unix" );
1616 }
You can’t perform that action at this time.
0 commit comments