summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_metatable.h
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-09-27 01:01:04 +0300
committeraunsane <aunsane@gmail.com>2017-09-27 01:01:30 +0300
commit923fb13df6d081efdccbe1f37c36c916a66aeb08 (patch)
tree47de3b3dc3d0fde07f752ee4bf38bf6c37caff79 /plugins/MirLua/src/mlua_metatable.h
parent7f0668bbc54d588b83f06043de455cb7297f7f31 (diff)
MirLua: fix MTValue initialization
Diffstat (limited to 'plugins/MirLua/src/mlua_metatable.h')
-rw-r--r--plugins/MirLua/src/mlua_metatable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/mlua_metatable.h b/plugins/MirLua/src/mlua_metatable.h
index 04173a2a56..b3aead3f71 100644
--- a/plugins/MirLua/src/mlua_metatable.h
+++ b/plugins/MirLua/src/mlua_metatable.h
@@ -54,7 +54,7 @@ public:
virtual MTValue GetValue(void *obj)
{
- MTValue value;
+ MTValue value = { 0 };
memcpy(&value, ((char*)obj + offset), sizeof(R));
return value;
}
@@ -70,7 +70,7 @@ public:
virtual MTValue GetValue(void*)
{
- MTValue value;
+ MTValue value = { 0 };
value.function = function;
return value;
}