gingerBill 5 days ago
parent
commit
56f275bc71
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/reflect/types.odin

+ 1 - 1
core/reflect/types.odin

@@ -293,7 +293,7 @@ is_string16 :: proc(info: ^Type_Info) -> bool {
 is_cstring16 :: proc(info: ^Type_Info) -> bool {
 is_cstring16 :: proc(info: ^Type_Info) -> bool {
 	if info == nil { return false }
 	if info == nil { return false }
 	v, ok := type_info_base(info).variant.(Type_Info_String)
 	v, ok := type_info_base(info).variant.(Type_Info_String)
-	return ok && v.is_cstring && v == .UTF_16
+	return ok && v.is_cstring && v.encoding == .UTF_16
 }
 }
 
 
 // Returns true the base-type is a boolean of any kind, false otherwise.
 // Returns true the base-type is a boolean of any kind, false otherwise.