Only load non-deleted houses

This commit is contained in:
Vortrex
2022-06-12 09:18:39 -05:00
parent 5aae9a5078
commit 962732c27e

View File

@@ -22,7 +22,7 @@ function loadHousesFromDatabase() {
let dbAssoc;
if (dbConnection) {
let dbQuery = queryDatabase(dbConnection, `SELECT * FROM house_main WHERE house_server = ${getServerId()}`);
let dbQuery = queryDatabase(dbConnection, `SELECT * FROM house_main WHERE house_deleted = 0 AND house_server = ${getServerId()}`);
if (dbQuery) {
if (dbQuery.numRows > 0) {
while (dbAssoc = fetchQueryAssoc(dbQuery)) {