From 1e0738594a4bec8cc69ff0f837f9ddb82d5eae14 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 15 Feb 2023 13:10:08 -0500 Subject: [PATCH] More than one row in result set is needed. --- src/engine/db/handlers/dbRunegateHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/db/handlers/dbRunegateHandler.java b/src/engine/db/handlers/dbRunegateHandler.java index be9bf624..67151bbd 100644 --- a/src/engine/db/handlers/dbRunegateHandler.java +++ b/src/engine/db/handlers/dbRunegateHandler.java @@ -35,7 +35,7 @@ public class dbRunegateHandler extends dbHandlerBase { try { ResultSet rs = executeQuery(); - if (rs.next()) { + while (rs.next()) { gateList.add(rs.getInt("sourceBuilding")); } } catch (SQLException e) { @@ -56,7 +56,7 @@ public class dbRunegateHandler extends dbHandlerBase { try { ResultSet rs = executeQuery(); - if (rs.next()) { + while (rs.next()) { int targetBuildingID = rs.getInt("sourceBuilding"); Building targetBuilding = (Building) DbManager.getObject(Enum.GameObjectType.Building, targetBuildingID); Enum.PortalType portalType = Enum.PortalType.valueOf(rs.getString("portalType"));