Hello.

I have these lines :

function damages(i,fighter,damage2,damage3)
{
text.innerHTML += "<br>********** "+fighter[0][5]+ " : vie "+damage2[fighter[0][0]]+" -- fatigue "+damage3[fighter[0][0]];
text.innerHTML += "<br>********** "+fighter[1][5]+ " : vie "+damage2[fighter[1][0]]+" -- fatigue "+damage3[fighter[1][0]];
text.innerHTML += "<br>********** "+fighter[2][5]+ " : vie "+damage2[fighter[2][0]]+" -- fatigue "+damage3[fighter[2][0]];

db.transaction(function (tx)
{
text.innerHTML += "<br>********** "+fighter[0][5]+ " : vie "+damage2[fighter[0][0]]+" -- fatigue "+damage3[fighter[0][0]];
text.innerHTML += "<br>********** "+fighter[1][5]+ " : vie "+damage2[fighter[1][0]]+" -- fatigue "+damage3[fighter[1][0]];
text.innerHTML += "<br>********** "+fighter[2][5]+ " : vie "+damage2[fighter[2][0]]+" -- fatigue "+damage3[fighter[2][0]];
The two "text.innerHTML" bloc are the same.

But the results are not the same :


********** Cat : vie 2 -- fatigue 3
********** Wolf : vie 3 -- fatigue 5
********** Rabbit : vie 0 -- fatigue 2
..

********** Cat : vie 2 -- fatigue 3
********** Wolf : vie 0 -- fatigue 0
********** Rabbit : vie 0 -- fatigue 0
I mean... what ? Why some values are lost and not the others ?