diff --git a/src/n8/ast/expression/VariableDeclarationExpression.cpp b/src/n8/ast/expression/VariableDeclarationExpression.cpp index 531cbb4..787226c 100644 --- a/src/n8/ast/expression/VariableDeclarationExpression.cpp +++ b/src/n8/ast/expression/VariableDeclarationExpression.cpp @@ -109,7 +109,7 @@ NativeFunction VariableDeclarationExpression::loadNativeFunction( depHandle = LoadLibraryA(entryDep.c_str()); #endif - if(Runtime::hasLoadedLibrary(entryDep)) + if(!Runtime::hasLoadedLibrary(entryDep)) Runtime::addLoadedLibrary(entryDep, depHandle); }