forked from github/server
CID 22542 Resource leak
Fix broken error mesasge: "Die Einheit hat diesen Gegenstand zwar, aber sämtliche $int($reservation) $resource($resource,$reservation) sind reserviert."
This commit is contained in:
parent
0a5bd9d356
commit
6e31751731
1 changed files with 2 additions and 2 deletions
|
@ -165,8 +165,8 @@ struct order *ord)
|
||||||
else if (n == 0) {
|
else if (n == 0) {
|
||||||
int reserve = get_reservation(src, itype);
|
int reserve = get_reservation(src, itype);
|
||||||
if (reserve) {
|
if (reserve) {
|
||||||
msg_feedback(src, ord, "nogive_reserved", "resource reservation",
|
ADDMSG(&src->faction->msgs, msg_feedback(src, ord, "nogive_reserved", "resource reservation",
|
||||||
itype->rtype, reserve);
|
itype->rtype, reserve));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
error = 36;
|
error = 36;
|
||||||
|
|
Loading…
Reference in a new issue