Skip to content

Commit

Permalink
PieceProjectile: make sure DamageArray is alive long enough (thanks a…
Browse files Browse the repository at this point in the history
…bma) [fix]

This might very well have been a cause of desync! ;-)
  • Loading branch information
hoijui committed Aug 2, 2011
1 parent 64a09e9 commit b6ea491
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rts/Sim/Projectiles/PieceProjectile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,11 @@ void CPieceProjectile::Collision()
pos += norm * 0.1f;
} else {
if (flags & PF_Explode) {
DamageArray damageArray(50);
CGameHelper::ExplosionParams params = {
pos,
ZeroVector,
DamageArray(50),
damageArray,
NULL, // weaponDef
owner(),
NULL, // hitUnit
Expand Down

0 comments on commit b6ea491

Please sign in to comment.