diff --git a/game/server/database/login_packages/login.plsql b/game/server/database/login_packages/login.plsql index cdf5251d..7eb07eee 100644 --- a/game/server/database/login_packages/login.plsql +++ b/game/server/database/login_packages/login.plsql @@ -74,7 +74,10 @@ as into over_account_limit, over_cluster_limit from (select count(*) num from swg_characters - where (station_id = p_station_id OR station_id IN (SELECT CASE WHEN child_id = p_station_id THEN parent_id ELSE child_id END as station_id FROM account_map WHERE parent_id = p_station_id OR child_id = p_station_id)) and enabled ='Y') account_counter, + where (station_id = p_station_id + OR station_id IN (SELECT CASE WHEN child_id = p_station_id THEN parent_id + ELSE child_id END as station_id FROM account_map WHERE parent_id = p_station_id + OR child_id = p_station_id)) and enabled ='Y') account_counter, default_char_limits, cluster_list where @@ -510,4 +513,4 @@ as when others then return 0; end; -end; \ No newline at end of file +end;