diff --git a/Source/VAPlugin/Private/VAPlugin.cpp b/Source/VAPlugin/Private/VAPlugin.cpp index 891399927104953751b22a353cc2ba683b6f0fc7..80f3cf39995df16f0c8c9e4d90959c8ace15214e 100644 --- a/Source/VAPlugin/Private/VAPlugin.cpp +++ b/Source/VAPlugin/Private/VAPlugin.cpp @@ -409,6 +409,9 @@ bool FVAPlugin::DisconnectServer() void FVAPlugin::AddVAServerSearchPath(const std::string& SearchPath) { + if (!ShouldInteractWithServer()) + return; + // This checking whether it already exists, led to undeterministic runtime error, due to std::string dtor. // So keep track whether it was added before yourself ;-) /*CVAStruct Searchpaths = VAServer->GetSearchPaths();