Fixed bug

This commit is contained in:
Kasen IO 2020-01-25 12:48:43 -05:00
parent aa0c225809
commit d6cf4db930

View file

@ -2371,10 +2371,10 @@ void ScriptEngine::entityScriptContentAvailable(const EntityItemID& entityID, co
// ENTITY SCRIPT WHITELIST TOGGLE CHECK
Setting::Handle<bool> whitelistEnabled{"private/whitelistEnabled", false };
bool whitelistEnabled = whitelistEnabled.get();
bool isWhitelistEnabled = whitelistEnabled.get();
if (!whitelistEnabled) {
qCDebug(scriptengine) << "Whitelist Enabled: " << whitelistEnabled;
if (!isWhitelistEnabled) {
qCDebug(scriptengine) << "Whitelist Enabled: " << isWhitelistEnabled;
passList = true;
}