Merge pull request #1087 from sipa/fix_1086
[novacoin.git] / src / util.cpp
index 5579a09..911388b 100644 (file)
@@ -836,9 +836,9 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific)
         path = mapArgs["-datadir"];
     } else {
         path = GetDefaultDataDir();
-        if (fNetSpecific && GetBoolArg("-testnet", false))
-            path /= "testnet";
     }
+    if (fNetSpecific && GetBoolArg("-testnet", false))
+        path /= "testnet";
 
     fs::create_directory(path);