View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001125Ecere SDKecpublic2017-03-21 20:372017-03-21 20:37
ReporterCaptainBlackton 
Assigned To 
PriorityhighSeveritymajorReproducibilityalways
StatusnewResolutionopen 
Platformx86_64:linuxOSLinux MintOS Version-
Product Version0.44 Ryoan-ji 
Target VersionFixed in Version 
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.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

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



Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker