diff options
Diffstat (limited to 'plugins/MirLua')
-rw-r--r-- | plugins/MirLua/src/mlua_metatable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MirLua/src/mlua_metatable.h b/plugins/MirLua/src/mlua_metatable.h index 2a11648420..108cf50f1a 100644 --- a/plugins/MirLua/src/mlua_metatable.h +++ b/plugins/MirLua/src/mlua_metatable.h @@ -28,7 +28,7 @@ private: template<typename R>
static R GetValue(const T *obj, size_t offset, size_t size)
{
- R res;
+ R res = NULL;
memcpy(&res, ((char*)obj) + offset, size);
return res;
}
|