diff options
Diffstat (limited to 'servers/debugger/servers_debugger.cpp')
-rw-r--r-- | servers/debugger/servers_debugger.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/servers/debugger/servers_debugger.cpp b/servers/debugger/servers_debugger.cpp index bf7dd6c29e..8da3a10ce9 100644 --- a/servers/debugger/servers_debugger.cpp +++ b/servers/debugger/servers_debugger.cpp @@ -342,10 +342,12 @@ public: } ServerInfo &srv = server_data[name]; - ServerFunctionInfo fi; - fi.name = p_data[1]; - fi.time = p_data[2]; - srv.functions.push_back(fi); + for (int idx = 1; idx < p_data.size() - 1; idx += 2) { + ServerFunctionInfo fi; + fi.name = p_data[idx]; + fi.time = p_data[idx + 1]; + srv.functions.push_back(fi); + } } void tick(double p_frame_time, double p_process_time, double p_physics_time, double p_physics_frame_time) { |