mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Use own resources when buying boat in allied shipyard
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user