Script: Only log each string parameter warning message once

This commit is contained in:
Jonathan G Rennison
2023-03-27 20:14:49 +01:00
parent ce5c758f2b
commit 29c451d1a8
8 changed files with 38 additions and 4 deletions

View File

@@ -16,6 +16,7 @@
#include "../group.h"
#include "../goal_type.h"
#include "../story_type.h"
#include "../3rdparty/robin_hood/robin_hood.h"
#include "table/strings.h"
#include <vector>
@@ -66,6 +67,8 @@ private:
void *event_data; ///< Pointer to the event data storage.
void *log_data; ///< Pointer to the log data storage.
robin_hood::unordered_node_set<std::string> seen_unique_log_messages; ///< Messages which have already been logged once and don't need to be logged again
public:
ScriptStorage() :
mode (nullptr),