From fe31bb997312b9cb4e327148640a3909227a4e62 Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Wed, 1 Apr 2020 21:54:37 +0200 Subject: [PATCH] fix #4826 gui1 tooltips part 2 --- src/floating_label.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/floating_label.hpp b/src/floating_label.hpp index bb26a731a4c2..af773e453e7d 100644 --- a/src/floating_label.hpp +++ b/src/floating_label.hpp @@ -71,7 +71,7 @@ class floating_label surface create_surface(); - bool expired(int time) const { return get_time_alive(time) > lifetime_; } + bool expired(int time) const { return lifetime_ >= 0 && get_time_alive(time) > lifetime_; } void show(const bool value) { visible_ = value; }