cidwel
Member
Hello
I was using a function I made called "length" that checks the kind of array, list or map you pass and returns the length of the structure, It seems it is failing in the ds_list/ds_map detectiop with the ds_exists function.
Right now seems that a ds_map can be also a ds_list using the function ds_exists() Still I'm not sure if this could be considered a bug, but it is really encouraging that it seems there's no true way to differentiate these kind of structures
Please, see the attached image.
The first structure in the picture is when you select in debugger to represent the variable called dsList as DS List
the second one is when you select it to reprensent the dsList as DS Map,
The best part is when it seems that dsLists can be represented as dsMaps and get random values from other objects in your game....
The dsList comes from a simple object: oScriptDialog
The dsMap that it seems is wrongly referencing is from another kind of object: oGame.mobClassDB
Does exist a possibility to determine the real type of structure that it is?
I was using a function I made called "length" that checks the kind of array, list or map you pass and returns the length of the structure, It seems it is failing in the ds_list/ds_map detectiop with the ds_exists function.
Right now seems that a ds_map can be also a ds_list using the function ds_exists() Still I'm not sure if this could be considered a bug, but it is really encouraging that it seems there's no true way to differentiate these kind of structures
Please, see the attached image.
The first structure in the picture is when you select in debugger to represent the variable called dsList as DS List
the second one is when you select it to reprensent the dsList as DS Map,
The best part is when it seems that dsLists can be represented as dsMaps and get random values from other objects in your game....
The dsList comes from a simple object: oScriptDialog
The dsMap that it seems is wrongly referencing is from another kind of object: oGame.mobClassDB
Does exist a possibility to determine the real type of structure that it is?
Attachments
-
58.2 KB Views: 29