Browse Source

Update StringMap.hx (#10889)

Daniel Rodríguez Rivero 2 năm trước cách đây
mục cha
commit
71b05d02e8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      std/lua/_std/haxe/ds/StringMap.hx

+ 1 - 1
std/lua/_std/haxe/ds/StringMap.hx

@@ -46,7 +46,7 @@ class StringMap<T> implements haxe.Constraints.IMap<String, T> {
 		untyped {
 		untyped {
 			var ret = h[key];
 			var ret = h[key];
 			if (ret == tnull) {
 			if (ret == tnull) {
-				ret = null;
+				return null;
 			}
 			}
 			return ret;
 			return ret;
 		}
 		}