fix: fail to delete heroes from a village that's being removed via Admin

This commit is contained in:
Martin Ambrus
2017-12-26 20:27:30 +01:00
parent 56680344ec
commit 879e4952ce
+1 -1
View File
@@ -641,7 +641,7 @@ class adm_DB {
if( intval($enforce['hero']) > 0){
$q = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".(int) $from['owner']." AND dead = 0";
$result = mysqli_query($q);
$result = mysqli_query($database->dblink, $q);
$hero_f=mysqli_fetch_array($result);
$hero_unit=$hero_f['unit'];
$speeds[] = $GLOBALS['u'.$hero_unit]['speed'];