Skip to content

Commit ccc2df9

Browse files
committed
Fix last compilation error
1 parent eb369a0 commit ccc2df9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Ext/TEvent/Body.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ std::optional<bool> TEventExt::Execute(TEventClass* pThis, int iEvent, HouseClas
3838
{
3939
const auto eventKind = static_cast<PhobosTriggerEvent>(pThis->EventKind);
4040

41+
// They must be the same, but for other triggers to take effect normally, this cannot be judged outside case.
42+
auto isSameEvent = [&]() { return eventKind == static_cast<PhobosTriggerEvent>(iEvent); };
43+
4144
switch (eventKind)
4245
{
4346
// The triggering conditions that need to be checked at any time are written here
@@ -132,9 +135,6 @@ std::optional<bool> TEventExt::Execute(TEventClass* pThis, int iEvent, HouseClas
132135

133136
// If it requires an additional object as like mapping events 7 or 48, please fill it in here.
134137

135-
// They must be the same, but for other triggers to take effect normally, this cannot be judged outside case.
136-
auto isSameEvent = [&]() { return eventKind == static_cast<PhobosTriggerEvent>(iEvent); };
137-
138138
// SomeTriggerAttachedToObject needs to be restricted to situations where ...
139139
// case PhobosTriggerEvent::SomeTriggerAttachedToObject:
140140
// return isSameEvent() && ...::ThisAttachedToObjectTEvent(pObject, ...);

0 commit comments

Comments
 (0)