View Issue Details

IDProjectCategoryView StatusLast Update
0001125Ecere SDKecpublic2017-03-21 20:37
ReporterCaptainBlackton Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status newResolutionopen 
Platformx86_64:linuxOSLinux MintOS Version-
Product Version0.44 Ryoan-ji 
Summary0001125: += is missing parentheses in generated code
DescriptionWhere:

satiation is property int
hp is property int

This line of code:
unit.satiation -= unit.hp / 100 + 2;

Generates this line of generated code:

__ecereProp_Unit_Set_satiation(unit, __ecereProp_Unit_Get_satiation(unit) - __ecereProp_ResourceObject_Get_hp(unit) / 100 + 2)

Note that it's adding on the 2 at the end AFTER doing the subtraction, since the parentheses are missing
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2017-03-21 20:37 CaptainBlackton New Issue