Fixed map glitch when race starts, and race XML bug

- Race XML wasn't being sent to clients, this was causing a null ptr exception
- Boat location was being set to an invalid lat/lng

Tags: #story[1047]
This commit is contained in:
Michael Rausch
2017-07-23 18:20:13 +12:00
parent ed2a22b573
commit 8b8b6e4afa
3 changed files with 3 additions and 2 deletions
@@ -420,6 +420,7 @@ public class CanvasController {
*/
private void findMinMaxPoint() {
List<Limit> sortedPoints = new ArrayList<>();
for (Limit limit : ClientPacketParser.getXmlObject().getRaceXML().getCourseLimit()) {
sortedPoints.add(limit);
}