Skip to content

Commit

Permalink
Fix initialization order
Browse files Browse the repository at this point in the history
  • Loading branch information
boxa committed Mar 12, 2017
1 parent 464f294 commit 9818a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/vmap/MapTree.cpp
Expand Up @@ -34,7 +34,7 @@ namespace VMAP
class MapRayCallback
{
public:
MapRayCallback(ModelInstance* val): prims(val), didHit(false) {}
MapRayCallback(ModelInstance* val): didHit(false), prims(val) {}
bool operator()(G3D::Ray const& ray, uint32 entry, float& distance, bool pStopAtFirstHit = true, bool pCheckLOS = false)
{
bool result = prims[entry].intersectRay(ray, distance, pStopAtFirstHit, pCheckLOS);
Expand Down

0 comments on commit 9818a28

Please sign in to comment.