'->' and '.' used on a reference to an object?
<p>I'm working on a code base and I came across something that kinda stumped me, or at least made me think twice for a bit.</p>

<p>I have a parameter to a function passed by reference like so: </p>

<pre><code>const PathTile &amp;refTile
</code></pre>

<p>at one point in the function a member function of the <code>pathTile</code> is accessed like one would expect, with the <code>-&gt;</code> operator, just a few lines down the same member function is accessed using the <code>.</code> operator. The weird thing is the code works. Is this <code>-&gt;</code> implicit when the <code>.</code> is used??</p>

<p>I ask because I'm not sure if the previous guy did this intentionally or not. Should I change it?</p>
