Removed redundant session check

Follow up to 323bd72
Thanks to @lighta
This commit is contained in:
Lemongrass3110 2016-06-05 11:03:27 +02:00
parent 323bd72907
commit 39f06ba71d

View File

@ -212,7 +212,7 @@ int channel_gjoin(struct map_session_data *sd, int flag){
struct Channel *channel; struct Channel *channel;
struct guild *g; struct guild *g;
if(!sd || (sd && sd->state.autotrade)) return -1; if(!sd || sd->state.autotrade) return -1;
g = sd->guild; g = sd->guild;
if(!g) return -2; if(!g) return -2;