Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, Quad, soulman3, Ayumi, steyr, 3run), 631 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Löschen von Pointer einer Entity ? #138570
06/28/07 11:58
06/28/07 11:58
Joined: Apr 2005
Posts: 274
austria
Ascalon Offline OP
Member
Ascalon  Offline OP
Member

Joined: Apr 2005
Posts: 274
austria
Wenn ich eine Entity mit ent_remove(me) gelöscht habe, wie lösche ich dann den dazugehörigen pointer ?

Folgendes steht in dem Hilfe-Menü:
(The pointer of a removed entity becomes invalid and must not be used anymore. Otherwise you'll risk accessing later-created entities with it.)

aber wie mache ich das ??


my webside : www.ascalon.jimdo.de
Re: Löschen von Pointer einer Entity ? [Re: Ascalon] #138571
06/28/07 12:07
06/28/07 12:07
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Wenn deine entity einen zugewiesenden pointer hat/hatte, dann setze diesen einfach auf NULL.
Code:

entity* my_entity;

//nach dem ent_remove:
my_entity = null;




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