adonthell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Adonthell-devel] puzzling code


From: Kai Sterker
Subject: Re: [Adonthell-devel] puzzling code
Date: Fri, 8 Jun 2012 10:24:58 +0200

On Fri, Jun 8, 2012 at 10:07 AM, Chris Frey <address@hidden> wrote:

> But I encountered a real puzzler here:
>
>        
> https://github.com/ksterker/adonthell/blob/master/src/rpg/pathfinding_costs.cc#L87
>
> The compiler says that 'actual' is an unused variable.

To me the compiler seems right. actual is declared in that very line
and assigned *i. But then no other statement uses it. So the whole
line should just get removed. Maybe you did that already.

Will pull your changes tonight.

Kai



reply via email to

[Prev in Thread] Current Thread [Next in Thread]