From 70b5389c13f6262a9c98ff4c22882c82974ab426 Mon Sep 17 00:00:00 2001 From: Rochet2s Date: Sat, 7 Jun 2014 23:41:20 +0300 Subject: [PATCH] Eluna fix the distinction between Cstring and String for mangos --- QueryMethods.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/QueryMethods.h b/QueryMethods.h index 77a299c..9dc1b26 100644 --- a/QueryMethods.h +++ b/QueryMethods.h @@ -136,7 +136,11 @@ namespace LuaQuery { uint32 col = Eluna::CHECKVAL(L, 2); if (col < RESULT->GetFieldCount()) +#ifdef MANGOS + Eluna::Push(L, RESULT->Fetch()[col].GetCppString()); +#else Eluna::Push(L, RESULT->Fetch()[col].GetString()); +#endif return 1; } @@ -144,7 +148,11 @@ namespace LuaQuery { uint32 col = Eluna::CHECKVAL(L, 2); if (col < RESULT->GetFieldCount()) +#ifdef MANGOS + Eluna::Push(L, RESULT->Fetch()[col].GetString()); +#else Eluna::Push(L, RESULT->Fetch()[col].GetCString()); +#endif return 1; }