Commit f84f7f0c authored by Leon Do Castelo's avatar Leon Do Castelo
Browse files

Update autosql.cpp

parent 0d847515
Pipeline #79809 passed with stage
in 15 seconds
......@@ -271,7 +271,7 @@ void Database::saveAutomaton(const Automate& a) const {
saveFunction(a.getTitle().c_str(), a.getFonction());
saveVoisinage(a.getTitle().c_str(), a.getRegleVoisinage());
stockerReseau(a.getReseauInit(), "To be determined", a.getTitle().c_str());
stockerReseau(a.getReseauInit(), "Grille 10*10 - Aleatoire", a.getTitle().c_str());
saveEnsemble(Automate::getInstance());
}
......@@ -496,8 +496,8 @@ void Database::stockerReseau(const Reseau& reseau, const QString& nomReseau, con
query.prepare("INSERT INTO Cellules VALUES (:reseau, :etat, :x, :y)");
query.bindValue(":reseau", idReseau);
query.bindValue(":etat", reseau.getReseau()[i][j].getIndEtat());
query.bindValue(":x", i);
query.bindValue(":y", j);
query.bindValue(":x", j);
query.bindValue(":y", i);
query.exec();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment