Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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