Eluna fix the distinction between Cstring and String for mangos

This commit is contained in:
Rochet2s
2014-06-07 23:41:20 +03:00
committed by Foereaper
parent eeb348e48a
commit 70b5389c13

View File

@@ -136,7 +136,11 @@ namespace LuaQuery
{ {
uint32 col = Eluna::CHECKVAL<uint32>(L, 2); uint32 col = Eluna::CHECKVAL<uint32>(L, 2);
if (col < RESULT->GetFieldCount()) if (col < RESULT->GetFieldCount())
#ifdef MANGOS
Eluna::Push(L, RESULT->Fetch()[col].GetCppString());
#else
Eluna::Push(L, RESULT->Fetch()[col].GetString()); Eluna::Push(L, RESULT->Fetch()[col].GetString());
#endif
return 1; return 1;
} }
@@ -144,7 +148,11 @@ namespace LuaQuery
{ {
uint32 col = Eluna::CHECKVAL<uint32>(L, 2); uint32 col = Eluna::CHECKVAL<uint32>(L, 2);
if (col < RESULT->GetFieldCount()) if (col < RESULT->GetFieldCount())
#ifdef MANGOS
Eluna::Push(L, RESULT->Fetch()[col].GetString());
#else
Eluna::Push(L, RESULT->Fetch()[col].GetCString()); Eluna::Push(L, RESULT->Fetch()[col].GetCString());
#endif
return 1; return 1;
} }