From 1e4aa81e6a8a0d917985b9c08d033a3f0385c9f8 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Sat, 28 Jun 2014 17:00:38 +0300 Subject: [PATCH] Eluna fix extension for classic and TBC There are no vehicles. https://github.com/ElunaLuaEngine/Eluna/commit/cfa6627d15a72002ab863446ecce719da8da2bf6#commitcomment-6831392 --- extensions/FunctionCache.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/extensions/FunctionCache.lua b/extensions/FunctionCache.lua index 1478c1d..b05b87d 100644 --- a/extensions/FunctionCache.lua +++ b/extensions/FunctionCache.lua @@ -116,9 +116,11 @@ T.Guild = {} table.insert(T.Guild, "GetId") table.insert(T.Guild, "GetName") -T.Vehicle = {} -table.insert(T.Vehicle, "GetOwner") -table.insert(T.Vehicle, "GetEntry") +if (GetCoreExpansion() >= 2) then + T.Vehicle = {} + table.insert(T.Vehicle, "GetOwner") + table.insert(T.Vehicle, "GetEntry") +end T.QueryResult = {} table.insert(T.QueryResult, "GetColumnCount")