diff --git a/include/gen/obj_defines.h b/include/gen/obj_defines.h
index 728411a8613e4d3e78cdba59508f2bd461a7e283..9914f618446164ef79eae2ec0dc86b35e3a85c56 100644
--- a/include/gen/obj_defines.h
+++ b/include/gen/obj_defines.h
@@ -5169,7 +5169,7 @@ return InternalGetRefs(); \
 
 #define NI_STENCIL_PROPERTY_MEMBERS \
 ushort flags; \
-bool stencilEnabled; \
+byte stencilEnabled; \
 CompareMode stencilFunction; \
 uint stencilRef; \
 uint stencilMask; \
@@ -5183,7 +5183,7 @@ FaceDrawMode drawMode; \
 #define NI_STENCIL_PROPERTY_PARENT NiProperty \
 
 #define NI_STENCIL_PROPERTY_CONSTRUCT \
- : flags((ushort)0), stencilEnabled(false), stencilRef((uint)0), stencilMask((uint)4294967295) \
+ : flags((ushort)0), stencilEnabled((byte)0), stencilRef((uint)0), stencilMask((uint)4294967295) \
 
 #define NI_STENCIL_PROPERTY_READ \
 InternalRead( in, link_stack, version, user_version ); \