Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, degenerate_762), 1,213 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Entity pointer to a removed entity [Re: EvilSOB] #334372
07/22/10 18:30
07/22/10 18:30
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
But if you remove an entitiy and crate an other, this pointer may them point to the new entity. Or, worse, if you create a panel, the pointer may point to the panel, which you then try to access as an entity, leading to unpredictable behaviour and crashes.

Re: Entity pointer to a removed entity [Re: EvilSOB] #335103
07/26/10 19:32
07/26/10 19:32
Joined: Jul 2010
Posts: 11
A
akinkhoo Offline
Newbie
akinkhoo  Offline
Newbie
A

Joined: Jul 2010
Posts: 11
am I missing something... can't we just set:

ent_remove(jet);
jet = NULL;

???

Page 2 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1