Browse Source

Fixed struct var assignment issue.

Brucey 5 years ago
parent
commit
92331f0973
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ctranslator.bmx

+ 1 - 1
ctranslator.bmx

@@ -2841,7 +2841,7 @@ t:+"NULLNULLNULL"
 		Local s:String
 		Local cast:String
 		
-		If TObjectType(stmt.lhs.exprType) Then
+		If TObjectType(stmt.lhs.exprType) And (Not TObjectType(stmt.lhs.exprType).classdecl.IsStruct() Or IsPointerType(stmt.lhs.exprType)) Then
 			cast = Bra(TransType(stmt.lhs.exprType, ""))
 		End If