Skip to content

Commit f2c038d

Browse files
committed
remove coresuspend from vmethod interpose
1 parent 7a79fab commit f2c038d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

plugins/building-hacks.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,8 @@ struct work_hook : df::building_workshopst{
290290
}
291291
DEFINE_VMETHOD_INTERPOSE(void, setTriggerState,(int32_t state))
292292
{
293-
{
294-
CoreSuspender suspend;
295-
color_ostream_proxy out(Core::getInstance().getConsole());
296-
onSetTriggerState(out, this, state);
297-
}
293+
color_ostream_proxy out(Core::getInstance().getConsole());
294+
onSetTriggerState(out, this, state);
298295
INTERPOSE_NEXT(setTriggerState)(state); //pretty sure default workshop has nothing related to this, but to be future proof lets do it like this
299296
}
300297
DEFINE_VMETHOD_INTERPOSE(void, drawBuilding, (uint32_t curtick,df::building_drawbuffer *db, int16_t z_offset))

0 commit comments

Comments
 (0)