From 4f2ac31456c41d5146728bce7b7041237aa9f222 Mon Sep 17 00:00:00 2001 From: Skye Deving <76892045+skyedeving@users.noreply.github.com> Date: Sun, 10 Jan 2021 06:24:10 -0600 Subject: Add arup_clear() and clear arup when fetching new areas Theoretically fixes #313 The "FA" packet from the server invalidates the client's previous area list so it makes sense for the arup information tied to that list to be invalidated as well (especially seeing that the area and arup share the same index). As we repopulate the client's area list, we do the same for the arup list. --- src/packet_distribution.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index 7146e6ed..15cb31b0 100644 --- a/src/packet_distribution.cpp +++ b/src/packet_distribution.cpp @@ -413,9 +413,11 @@ void AOApplication::server_packet_received(AOPacket *p_packet) goto end; w_courtroom->clear_areas(); + w_courtroom->arup_clear(); for (int n_element = 0; n_element < f_contents.size(); ++n_element) { w_courtroom->append_area(f_contents.at(n_element)); + w_courtroom->arup_append(0, "Unknown", "Unknown", "Unknown"); } w_courtroom->list_areas(); -- cgit