From 94cd430b84f1ce835582d793139ebb1a298a8e67 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Sat, 21 Jun 2014 18:47:05 +0200 Subject: [PATCH] oops --- Aquaria/ScriptInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aquaria/ScriptInterface.cpp b/Aquaria/ScriptInterface.cpp index e8a27be..c3dd1d0 100644 --- a/Aquaria/ScriptInterface.cpp +++ b/Aquaria/ScriptInterface.cpp @@ -675,7 +675,7 @@ static void safePath(lua_State *L, const std::string& path) { if(path[0] == '/') { - if(!(dsq->mod.isActive() && path.substr(0, dsq->mod.getBaseModPath().length()) == dsq->mod.getBaseModPath()) + if(!(dsq->mod.isActive() && path.substr(0, dsq->mod.getBaseModPath().length()) == dsq->mod.getBaseModPath())) { lua_pushliteral(L, "Absolute paths are not allowed"); lua_error(L);