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
Romain De Laage De Bellefaye
LO21-projet
Commits
61c7f73a
Verified
Commit
61c7f73a
authored
Jun 11, 2021
by
Romain De Laage De Bellefaye
🌳
Browse files
Resolve segfault when switching automaton
parent
03fd0373
Pipeline
#79682
passed with stage
in 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/reseau_cellule_etats.cpp
View file @
61c7f73a
...
...
@@ -47,12 +47,15 @@ void EnsembleEtat::initEtat(const Etat* init_etats){
}
void
EnsembleEtat
::
reset
(){
if
(
ensEtats
!=
nullptr
){
for
(
auto
it
:
ensEtats
){
delete
it
;
}
nbEtats
=
0
;
}
if
(
ensEtats
!=
nullptr
){
for
(
auto
&
it
:
ensEtats
)
{
if
(
it
!=
nullptr
)
{
delete
it
;
it
=
nullptr
;
}
}
nbEtats
=
0
;
}
};
//méthodes de la classe Etat
...
...
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