diff options
Diffstat (limited to 'include/components.hpp')
-rw-r--r-- | include/components.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/components.hpp b/include/components.hpp index f2e040d..1c83a34 100644 --- a/include/components.hpp +++ b/include/components.hpp @@ -232,9 +232,10 @@ struct Visible { struct Dialog { Dialog(int idx = 0) - : index(idx) {} + : index(idx), rindex((idx == 9999) ? randGet() : idx) {} int index; + int rindex; }; /** |