Fix illegal override for non virtual int

This commit is contained in:
Flerp 2025-11-08 08:57:41 -08:00
parent c49e39b70b
commit a6e8490cbd

View File

@ -90,26 +90,24 @@ public:
}
};
class DMFAlways_EventHook : public ScriptObject
class DMFAlways_EventHook : public GameEventScript
{
public:
DMFAlways_EventHook() : ScriptObject("DMFAlways_EventHook") { }
DMFAlways_EventHook() : GameEventScript("DMFAlways_EventHook") { }
void OnGameEventStart(uint16 eventId) override
void OnStart(uint16 eventId) override
{
if (!sEnabled) return;
if (std::find(sEventIds.begin(), sEventIds.end(), eventId) != sEventIds.end())
EnsureAll();
}
void OnGameEventStop(uint16 eventId) override
void OnStop(uint16 eventId) override
{
if (!sEnabled) return;
if (std::find(sEventIds.begin(), sEventIds.end(), eventId) != sEventIds.end())
{
ForceStart(eventId);
}
}
};
void AddSC_mod_dmf_always()