Database: Fix sessionCache when no hero exists

This commit is contained in:
Worros 2011-03-29 17:13:31 +08:00
parent 684689c9db
commit de9c65e3ea

View File

@ -1885,7 +1885,7 @@ class Database:
if doinsert: if doinsert:
for h in hbulk: for h in hbulk:
id = h.pop() id = h.pop()
if hdata['sc'] and hdata['gsc']: if (hdata['sc'] != None and hdata['sc']['bk']) and hdata['gsc']['bk']:
h[4] = hdata['sc'][id]['id'] h[4] = hdata['sc'][id]['id']
h[5] = hdata['gsc'][id]['id'] h[5] = hdata['gsc'][id]['id']
q = self.sql.query['store_hand'] q = self.sql.query['store_hand']