mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-25 08:41:51 +00:00
fix crash when people put a list of cave ids in a wallet
This commit is contained in:
parent
4a34986598
commit
1f70b77735
@ -105,11 +105,16 @@ def fillblankothers(w):
|
|||||||
if not wcaveid or wcaveid == "":
|
if not wcaveid or wcaveid == "":
|
||||||
caveifywallet(w)
|
caveifywallet(w)
|
||||||
else:
|
else:
|
||||||
if wcaveid in Gcavelookup:
|
if type(wcaveid) == list:
|
||||||
w.caveobj = Gcavelookup[wcaveid]
|
for i in wcaveid:
|
||||||
# print(f' - Found cave object from id {wcaveid}')
|
if i in Gcavelookup:
|
||||||
|
w.caveobj = Gcavelookup[i] # just sets it to the last one found. nasty. bug waiting to happen
|
||||||
|
#print(f' - Found cave object from id {wcaveid}')
|
||||||
else:
|
else:
|
||||||
print(f' - Failed to find cave object from id {wcaveid}')
|
if wcaveid in Gcavelookup:
|
||||||
|
w.caveobj = Gcavelookup[wcaveid]
|
||||||
|
else:
|
||||||
|
print(f' - Failed to find cave object from id {wcaveid}')
|
||||||
|
|
||||||
|
|
||||||
def fixsurvextick(w, ticks):
|
def fixsurvextick(w, ticks):
|
||||||
|
Loading…
Reference in New Issue
Block a user