From d1e81f7b8023e21106cd5d005032ecd036473cf8 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 11 Apr 2004 18:17:59 +0000 Subject: Fixes to use iterator git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@546 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connection.cpp b/src/connection.cpp index f4ab75f0a..9f6896c62 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -315,7 +315,7 @@ bool connection::RecvPacket(char *message, char* host, int &prt, long &theirkey) strcpy(host,buffer[0].host); prt = buffer[0].port; - buffer.erase(0); + buffer.erase(buffer.begin()); return true; } @@ -366,7 +366,7 @@ bool connection::RecvPacket(char *message, char* host, int &prt, long &theirkey) strcpy(host,buffer[0].host); prt = buffer[0].port; - buffer.erase(0); + buffer.erase(buffer.begin()); } return true; -- cgit v1.2.3