Use own resources when buying boat in allied shipyard

This commit is contained in:
Ivan Savenko committed 2023-03-31 23:18:45 +03:00
1 parent 839172cd30
commit 820c9be61b
3 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -253,7 +253,7 @@ void ApplyGhNetPackVisitor::visitBuildBoat(BuildBoat & pack)
if(gh.getPlayerRelations(gh.getOwner(pack.objid), gh.getPlayerAt(pack.c)) == PlayerRelations::ENEMIES)
gh.throwAndComplain(&pack, "Can't build boat at enemy shipyard");
result = gh.buildBoat(pack.objid);
result = gh.buildBoat(pack.objid, gh.getPlayerAt(pack.c));
}
void ApplyGhNetPackVisitor::visitQueryReply(QueryReply & pack)