Fixed deleting trade routes after village is conquered

This commit is contained in:
AL-Kateb
2017-12-28 15:21:07 +00:00
parent ddc2e62472
commit a254572a43
2 changed files with 11 additions and 1 deletions
+7
View File
@@ -4367,7 +4367,14 @@ References: User ID/Message ID, Mode
$q = "DELETE FROM " . TB_PREFIX . "route where id = $id";
return mysqli_query($this->dblink,$q);
}
function deleteTradeRoutesByVillage($id) {
list($id) = $this->escape_input((int) $id);
$q = "DELETE FROM " . TB_PREFIX . "route where `from` = $id";
return mysqli_query($this->dblink,$q);
}
function addBuilding($wid, $field, $type, $loop, $time, $master, $level) {
list($wid, $field, $type, $loop, $time, $master, $level) = $this->escape_input((int) $wid, $field, (int) $type, (int) $loop, (int) $time, (int) $master, (int) $level);