Majchrzak / Flurry-Unity-3D

Flurry iOS and Android plugin for Unity 3D.
MIT License
64 stars 33 forks source link

iOS Event Parameters inverted on Flurry - **BUG FIX** #6

Closed rcstuber closed 9 years ago

rcstuber commented 9 years ago

There is a critical bug in the iOS Wrapper, which causes Event Parameters to be swapped at the parameter key and the parameter value.

Following line in function keyValueToDict in UnityFlurry.mm is wrong:

[dict setObject:[keysArray objectAtIndex: i] forKey:[valuesArray objectAtIndex: i]];

CHANGE TO: [dict setObject:[valuesArray objectAtIndex: i] forKey:[keysArray objectAtIndex: i]];

Sadly Objective-C is being one of those languages where a Map is set in the form of value/key instead the other ways around!

Hope it helps. Cheers.

Majchrzak commented 9 years ago

Thanks, fixed.