forked from github/server
CID 22490 Dereference after null check
This commit is contained in:
parent
0271336428
commit
65f1574312
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ void give_unit(unit * u, unit * u2, order * ord)
|
|||
int maxt = max_transfers();
|
||||
|
||||
assert(u);
|
||||
if (!rule_transfermen() && u->faction != u2->faction) {
|
||||
if (!rule_transfermen() && u2 && u->faction != u2->faction) {
|
||||
cmistake(u, ord, 74, MSG_COMMERCE);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue