summaryrefslogtreecommitdiff
path: root/source/3rd-party/Luax/luax_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/3rd-party/Luax/luax_state.cpp')
-rw-r--r--source/3rd-party/Luax/luax_state.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/3rd-party/Luax/luax_state.cpp b/source/3rd-party/Luax/luax_state.cpp
index 3eae1df..612f26e 100644
--- a/source/3rd-party/Luax/luax_state.cpp
+++ b/source/3rd-party/Luax/luax_state.cpp
@@ -314,7 +314,7 @@ namespace Luax
lua_gettable(mState, idx);
}
- std::string LuaxState::GetField(int idx, cc8* key, cc8* value)
+ std::string LuaxState::GetField(int idx, cc8* key, cc8* default_value)
{
std::string str;
if (this->GetFieldWithType(idx, key, LUA_TSTRING)) {
@@ -322,12 +322,12 @@ namespace Luax
lua_pop(mState, 1);
}
else {
- str = value;
+ str = default_value;
}
return str;
}
- std::string LuaxState::GetField(int idx, int key, cc8* value)
+ std::string LuaxState::GetField(int idx, int key, cc8* default_value)
{
std::string str;
if (this->GetFieldWithType(idx, key, LUA_TSTRING)) {
@@ -335,7 +335,7 @@ namespace Luax
lua_pop(mState, 1);
}
else {
- str = value;
+ str = default_value;
}
return str;
}