Skip to content

Commit

Permalink
Fix crash when trying to sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Dec 12, 2017
1 parent 5e5cf47 commit f1b08e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion res/gamedata/scripts/ui_sleep_dialog.script
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function sleep_dialog:__init() super()
self:Register(self.btn_cancel, "btn_cancel")

self.sleep_mb = CUIMessageBoxEx()
self.sleep_mb:self:SetAutoDelete(true)
self.sleep_mb:SetAutoDelete(true)
self:Register(self.sleep_mb, "sleep_mb")
--------------------------------------------------------------------------------
self:AddCallback("btn_sleep", ui_events.BUTTON_CLICKED, self.OnButtonSleep, self)
Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/ui/UIWindow_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ CGameFont* GetFontGraffiti32Russian() { return mngr().pFontGraffiti32Russian; }
CGameFont* GetFontGraffiti50Russian() { return mngr().pFontGraffiti50Russian; }
CGameFont* GetFontLetterica25() { return mngr().pFontLetterica25; }
int GetARGB(u16 a, u16 r, u16 g, u16 b) { return color_argb(a, r, g, b); }
const Fvector2* get_wnd_pos(CUIWindow* w) { return &w->GetWndPos(); }
const Fvector2 get_wnd_pos(CUIWindow* w) { return w->GetWndPos(); }
using namespace luabind;
using namespace luabind::policy;

Expand Down

0 comments on commit f1b08e2

Please sign in to comment.