Commit ddd4ea81 authored by Viktor Lidholt's avatar Viktor Lidholt

Fixes inferred type warning

parent 9e8f901b
...@@ -11,8 +11,8 @@ class _PhysicsCollisionGroups { ...@@ -11,8 +11,8 @@ class _PhysicsCollisionGroups {
List<Object> getKeysForBitmask(int bitmask) { List<Object> getKeysForBitmask(int bitmask) {
List<Object> keys = []; List<Object> keys = [];
keyLookup.forEach((key, value) { keyLookup.forEach((Object key, int value) {
if (value & bitmask) { if (value & bitmask != null) {
keys.add(key); keys.add(key);
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment