fix #4826 gui1 tooltips part 2

This commit is contained in:
gfgtdf 2020-04-01 21:54:37 +02:00
parent a5437b408f
commit fe31bb9973

View File

@ -71,7 +71,7 @@ public:
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; }