pingus-devel
[Top][All Lists]
Advanced

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

Re: [Pingus-CVS] CVS: Games/Pingus/src/worldobjs hotspot.cxx,1.1,1.2 hot


From: David Philippi
Subject: Re: [Pingus-CVS] CVS: Games/Pingus/src/worldobjs hotspot.cxx,1.1,1.2 hotspot.hxx,1.1,1.2
Date: Wed, 25 Sep 2002 11:00:01 +0200
User-agent: KMail/1.4.1

On Tuesday 24 September 2002 18:46, address@hidden wrote:
> fixed little crashbug

>  Hotspot::Hotspot (WorldObjsData::HotspotData* data_)
> -  : sprite(data->desc),
> -    data(new WorldObjsData::HotspotData(*data_))
> +  : data(new WorldObjsData::HotspotData(*data_)),
> +    sprite(data->desc)

The easier way is usually to use 

sprite(data_->desc)

Seems like I've overlooked a case where I used the wrong data pointer. This 
method has the advantage that it still works if someone would reorder them 
again due to an still unknown reason.

Bye David






reply via email to

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