Skip to content

Commit 18ae933

Browse files
committed
Add missing return on error
1 parent c66eba3 commit 18ae933

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gm_dotnet_native/dotnethelper-src/dotnethelper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ extern "C" DYNAMIC_EXPORT cleanup_function_fn InitNetRuntime(GarrysMod::Lua::ILu
194194
if(runtime_environment_handle == nullptr)
195195
{
196196
error_log_file << "runtime_environment_handle is null" << std::endl;
197+
return nullptr;
197198
}
198199
get_function_pointer_fn get_function_pointer = nullptr;
199200
int get_runtime_delegate_success_code =

0 commit comments

Comments
 (0)