Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gauthier Quesnel
irritator
Commits
962bee24
Commit
962bee24
authored
Nov 02, 2020
by
Gauthier Quesnel
Browse files
gui: fix models in transition vector
parent
5d932733
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/gui/simulation-editor.cpp
View file @
962bee24
...
...
@@ -295,7 +295,7 @@ simulation_init(window_logger& log_w, editor& ed)
ed
.
simulation_during_date
=
ed
.
simulation_begin
;
ed
.
st
=
editor_status
::
initializing
;
ed
.
models_make_transition
.
resize
(
ed
.
sim
.
models
.
max_used
(),
false
);
ed
.
models_make_transition
.
resize
(
ed
.
sim
.
models
.
capacity
(),
false
);
if
(
ed
.
sim_st
=
ed
.
sim
.
initialize
(
ed
.
simulation_current
);
irt
::
is_bad
(
ed
.
sim_st
))
{
...
...
@@ -411,7 +411,10 @@ show_simulation_run_debug(window_logger& log_w, editor& ed)
const
auto
&
l
=
ed
.
sim
.
sched
.
list_model_id
();
ed
.
models_make_transition
.
resize
(
ed
.
sim
.
models
.
max_used
(),
false
);
std
::
fill_n
(
ed
.
models_make_transition
.
begin
(),
ed
.
models_make_transition
.
size
(),
false
);
for
(
auto
it
=
l
.
begin
(),
e
=
l
.
end
();
it
!=
e
;
++
it
)
ed
.
models_make_transition
[
get_index
(
*
it
)]
=
true
;
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment