Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0026239RunnerVariablesPublic2017-04-18 16:202017-08-04 15:08
ReporterStewart Bishop 
Assigned ToFritz 
PriorityHighSeverityB - MajorReproducibility100%
StatusClosedResolutionFixed 
PlatformOSOS Version
Summary0026239: Variables: ds_map keys might get overwritten, hash collisions suspected
DescriptionGiven the snippet:

var _test = ds_map_create();
_test[? "MAHATMA"] = 0;
_test[? "TAX"] = 1;
show_debug_message(json_encode(_test));

The expected output would be: '{ "MAHATMA" : 0.000000, "TAX": 1.000000 }' or similar.
The actual output is: '{ "TAX": 1.000000 }'
As if TAX entry has overwritten MAHATMA entry.
Steps To Reproduce1) Create a project
2) Create an object
3) Add the above code to the objects create event
4) Add object to room
5) Run it
6) See the output
1.4 Version
2.x Runtime Version9.9.1.525
2.x Runtime Version Verified In9.9.1.670
Attached Files? file icon DSMapBug.yyz [^] (17,153 bytes) 2017-04-18 16:21

- Relationships

-  Notes
There are no notes attached to this issue.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker