summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}