samples/gui/OpenRider: Fixed deserialization still broken
authorJerome St-Louis <jerome@ecere.com>
Thu, 7 Aug 2014 07:57:38 +0000 (03:57 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 7 Aug 2014 07:57:38 +0000 (03:57 -0400)
samples/guiAndGfx/openrider/game.ec

index 63370dd..8280117 100644 (file)
@@ -54,12 +54,12 @@ class GameVehicle {
          }
          else
             this = GameVehicle { };
-
-         if(!type)
-            channel.Get(type);
-         channel.Get(location);
-         channel.Get(velocity);
       }
+
+      if(!type)
+         channel.Get(type);
+      channel.Get(location);
+      channel.Get(velocity);
    }
 
    virtual void Update(Game game);