forked from github/server
fix a crash when selling nothing.
build 687
This commit is contained in:
parent
adcd4ec1c6
commit
f3e54e103a
2 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
||||||
#define VERSION_MAJOR 3
|
#define VERSION_MAJOR 3
|
||||||
#define VERSION_MINOR 3
|
#define VERSION_MINOR 3
|
||||||
#define VERSION_BUILD 686
|
#define VERSION_BUILD 687
|
||||||
|
|
|
@ -2389,7 +2389,7 @@ static bool sell(unit * u, request ** sellorders, struct order *ord)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
n = atoi((const char *)s);
|
n = s ? atoi(s) : 0;
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
cmistake(u, ord, 27, MSG_COMMERCE);
|
cmistake(u, ord, 27, MSG_COMMERCE);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue