summaryrefslogtreecommitdiff
path: root/src/ui/ui_earnings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui_earnings.cpp')
-rw-r--r--src/ui/ui_earnings.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/ui_earnings.cpp b/src/ui/ui_earnings.cpp
index 8f08bcb..cb6c848 100644
--- a/src/ui/ui_earnings.cpp
+++ b/src/ui/ui_earnings.cpp
@@ -36,6 +36,8 @@ void ui::destroy_earnings()
void ui::draw_earnings()
{
+ if (ImGui::InvalidCompanyInfoWarning()) return;
+
static s32 current_page = 0;
s32 max_page = ((statement->quarter_count) / 4);