From 89f893df366fa2b3b4e7f8e3988d7ea09e3693ff Mon Sep 17 00:00:00 2001
From: Mathieu Beligon <mathieu@feedly.com>
Date: Tue, 31 Mar 2020 22:02:47 -0400
Subject: [PATCH] [common] (object) bugfix

---
 common/polystar/common/models/object.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/polystar/common/models/object.py b/common/polystar/common/models/object.py
index f81a0b6..6946967 100644
--- a/common/polystar/common/models/object.py
+++ b/common/polystar/common/models/object.py
@@ -57,7 +57,7 @@ class ObjectFactory:
         x, y = max(0, x), max(0, y)
 
         if t is not ObjectType.Armor:
-            return Object(type=t, x=0, y=0, w=w, h=h)
+            return Object(type=t, x=x, y=y, w=w, h=h)
 
         armor_number = int(json["armor_class"]) if json["armor_class"] != "none" else 0
 
-- 
GitLab