more d2s parsing, refactor more

This commit is contained in:
Hash Borgir 2022-06-21 16:24:56 -06:00
parent 5c00d05494
commit 95bcefe2cf

View File

@ -133,7 +133,7 @@ class D2Item {
$res = PDO_FetchAssoc($sql);
}
if (empty($res)){
$sql = "SELECT code,namestr FROM misc WHERE code='{$this->iData['itemCode']}'";
$sql = "SELECT code,namestr FROM weapons WHERE code='{$this->iData['itemCode']}'";
$res = PDO_FetchAssoc($sql);
}