From 35ec3855f689cf2c6b1504a5813b7c3d9697ae14 Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 8 Jun 2014 12:49:06 +0200 Subject: Speedup attachement handling by replacing vector search by direct array access and secondary child lookup vector --- src/environment.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/environment.h') diff --git a/src/environment.h b/src/environment.h index 5062b9c37..cecc9133a 100644 --- a/src/environment.h +++ b/src/environment.h @@ -492,7 +492,7 @@ public: // Get event from queue. CEE_NONE is returned if queue is empty. ClientEnvEvent getClientEvent(); - std::vector > attachment_list; // X is child ID, Y is parent ID + u16 m_attachements[USHRT_MAX]; std::list getPlayerNames() { return m_player_names; } -- cgit v1.2.3