Fixed: assert when Local mode is used

hg/feature/sound
kervala 15 years ago
parent 79e9fb5bdc
commit 78111dec49

@ -66,7 +66,7 @@ static string getWebAuthKey()
void addWebIGParams (string &url) void addWebIGParams (string &url)
{ {
if(!UserEntity) return; if(!UserEntity || (NetMngr.getConnectionState() < CNetworkConnection::Connected)) return;
uint32 cid = NetMngr.getLoginCookie().getUserId() * 16 + PlayerSelectedSlot; uint32 cid = NetMngr.getLoginCookie().getUserId() * 16 + PlayerSelectedSlot;
url += ((url.find('?') != string::npos) ? "&" : "?") + url += ((url.find('?') != string::npos) ? "&" : "?") +

Loading…
Cancel
Save