diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-23 16:31:02 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-23 16:31:02 +0100 |
| commit | 49d967433c5f3482852b5d001258b314a0c221ec (patch) | |
| tree | 2640e4e330beebb7645bd7b2ed14e53a857c1aca /editor/tests.cpp | |
| parent | 34e2f8cc79e3296585c6a219c09fdc6738281c40 (diff) | |
wip region
Diffstat (limited to 'editor/tests.cpp')
| -rw-r--r-- | editor/tests.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/editor/tests.cpp b/editor/tests.cpp index c5deacae..a5c2be3c 100644 --- a/editor/tests.cpp +++ b/editor/tests.cpp @@ -34,13 +34,8 @@ void tests_data::switch_to(Test i) fm_assert((size_t)i < arraySize(fields)); current_index = Test::none; current_test = make_test_none(); - switch (i) - { - default: break; - case Test::none: current_test = make_test_none(); break; - case Test::path: current_test = make_test_path(); break; - case Test::raycast: current_test = make_test_raycast(); break; - } + if (i < Test::COUNT) + current_test = tests_data::fields[(size_t)i].ctor(); if (current_test) current_index = i; } |
