1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

ShipID can be zero

Ref 65970de
This commit is contained in:
Jonathan Harris 2017-09-05 15:58:08 +01:00
parent 20c86f36cd
commit 2ff75b9da9

View File

@ -205,7 +205,7 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
setranks(cmdr, state['Rank'])
# Send ship info to EDSM on startup or change
if entry['event'] in ['StartUp', 'Loadout', 'LoadGame', 'SetUserShipName'] and cmdr and state['ShipID']:
if entry['event'] in ['StartUp', 'Loadout', 'LoadGame', 'SetUserShipName'] and cmdr and state['ShipID'] is not None:
setshipid(cmdr, state['ShipID'])
props = []
if state['ShipIdent'] is not None: