]> git.sesse.net Git - pkanalytics/blobdiff - events.h
Make the default action on offense a catch.
[pkanalytics] / events.h
index 946ebb543b2dc7db95a6bb4461f1df3c35cdd205..3574cc6736c3d90c587c595a0d4e0bdb58774da5 100644 (file)
--- a/events.h
+++ b/events.h
@@ -25,7 +25,7 @@ public:
        QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
        QVariant data(const QModelIndex &index, int role) const override;
 
-       unsigned insert_event(uint64_t t, int player_id, const std::string &type = "unknown");  // Returns the row.
+       unsigned insert_event(uint64_t t, std::optional<int> player_id, const std::string &type = "unknown");  // Returns the row.
        void delete_event(unsigned row);
        void set_event_type(unsigned row, const std::string &type);
        uint64_t get_time(unsigned row) { return events[row].t; }