From: APTX Date: Sun, 21 Aug 2022 10:46:29 +0000 (+0900) Subject: Fix assert X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=60c2abd08a96d93ea1759d59f7041fc1140b41dc;p=aniplayer.git Fix assert --- diff --git a/backendplugins/backend_mpv/mpvhelper.h b/backendplugins/backend_mpv/mpvhelper.h index e54f916..5322560 100644 --- a/backendplugins/backend_mpv/mpvhelper.h +++ b/backendplugins/backend_mpv/mpvhelper.h @@ -291,7 +291,7 @@ class EventHandler { : m_property{event}, m_callback{callback} {} void run(Class *obj, mpv_event_property *event) const override { - assert(strcmp(m_property.name, event.name) == 0); + assert(strcmp(m_property.name, event->name) == 0); if constexpr (IsVoid) { (obj->*m_callback)(); } else {