summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/connection.cpp4
1 files 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;