Skip to content

Commit

Permalink
probably fix uninitialized thing in VIBR, might spend longer later me…
Browse files Browse the repository at this point in the history
…ssing with d4zk1tty's fuzzer script
  • Loading branch information
jacob1 committed Apr 2, 2016
1 parent 21e3a50 commit 0b1ffbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulation/elements/VIBR.cpp
Expand Up @@ -80,9 +80,9 @@ int Element_VIBR::update(UPDATE_FUNC_ARGS) {
else //if it is exploding
{
//Release sparks before explode
rndstore = rand();
if (parts[i].life < 300)
{
rndstore = rand();
rx = rndstore%3-1;
ry = (rndstore>>2)%3-1;
rndstore = rndstore >> 4;
Expand Down

0 comments on commit 0b1ffbc

Please sign in to comment.