summaryrefslogtreecommitdiffstats
path: root/modules/gdnative/gdnative/node_path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gdnative/gdnative/node_path.cpp')
-rw-r--r--modules/gdnative/gdnative/node_path.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdnative/gdnative/node_path.cpp b/modules/gdnative/gdnative/node_path.cpp
index 93f43835c8..88ed650ebe 100644
--- a/modules/gdnative/gdnative/node_path.cpp
+++ b/modules/gdnative/gdnative/node_path.cpp
@@ -37,6 +37,8 @@
extern "C" {
#endif
+static_assert(sizeof(godot_node_path) == sizeof(NodePath), "NodePath size mismatch");
+
void GDAPI godot_node_path_new(godot_node_path *r_dest, const godot_string *p_from) {
NodePath *dest = (NodePath *)r_dest;
const String *from = (const String *)p_from;