Skip to content

Commit

Permalink
fix template methods in gui builder
Browse files Browse the repository at this point in the history
  • Loading branch information
malytomas committed Nov 23, 2023
1 parent 8c09aee commit 99bdfb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/include/cage-engine/guiBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ namespace cage
template<void (*F)(Entity *)>
BuilderItem update()
{
return update(Delegate<void (*)(Entity *)>().bind<F>());
return update(Delegate<void(Entity *)>().bind<F>());
}
template<class D, void (*F)(D, Entity *)>
BuilderItem update(D d)
{
return update(Delegate<void (*)(Entity *)>().bind<D, F>(D));
return update(Delegate<void(Entity *)>().bind<D, F>(d));
}

BuilderItem tooltip(const GuiTooltipComponent &t);
Expand Down

0 comments on commit 99bdfb4

Please sign in to comment.