Skip to content

Commit

Permalink
Camera: Initialize IO_CAMDATA members
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Jan 17, 2018
1 parent 6574a38 commit b36dc31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/game/Camera.h
Expand Up @@ -57,6 +57,13 @@ struct IO_CAMDATA {
bool lastinfovalid;
float smoothing;

IO_CAMDATA()
: lasttarget(Vec3f_ZERO)
, translatetarget(Vec3f_ZERO)
, lastinfovalid(false)
, smoothing(0.f)
{ }

};

struct PreparedCamera {
Expand Down

0 comments on commit b36dc31

Please sign in to comment.