From 0a413265cb7057b5303733dd32cf802a9ecf6105 Mon Sep 17 00:00:00 2001
From: est31 <MTest31@outlook.com>
Date: Wed, 8 Apr 2015 22:44:37 +0200
Subject: Document for api functions that rely on current_modname, that it
 doesn't work when not loading mods

---
 src/script/lua_api/l_base.h | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/script/lua_api')

diff --git a/src/script/lua_api/l_base.h b/src/script/lua_api/l_base.h
index c580e9597..641013dfd 100644
--- a/src/script/lua_api/l_base.h
+++ b/src/script/lua_api/l_base.h
@@ -40,6 +40,7 @@ public:
 	static Server*          getServer(lua_State *L);
 	static Environment*     getEnv(lua_State *L);
 	static GUIEngine*       getGuiEngine(lua_State *L);
+	// When we are not loading the mod, this function returns "."
 	static std::string      getCurrentModPath(lua_State *L);
 
 	// Get an arbitrary subclass of ScriptApiBase
-- 
cgit v1.2.3