From 9215c35975be745628e8188473154c7e476add55 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 4 Feb 2014 23:18:54 -0800 Subject: Wrap remaining FDs in a class --- src/map/intif.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/intif.cpp') diff --git a/src/map/intif.cpp b/src/map/intif.cpp index 006be1c..7d699dd 100644 --- a/src/map/intif.cpp +++ b/src/map/intif.cpp @@ -315,9 +315,9 @@ void mapif_parse_WisToGM(Session *s) CharName Wisp_name = stringish(RFIFO_STRING<24>(s, 4)); FString message = RFIFO_STRING(s, 30, len); // information is sended to all online GM - for (int i = 0; i < fd_max; i++) + for (io::FD i : iter_fds()) { - Session *s2 = session[i].get(); + Session *s2 = get_session(i); if (!s2) continue; dumb_ptr pl_sd = dumb_ptr(static_cast(s2->session_data.get())); -- cgit v1.2.3-70-g09d2