mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-30 22:17:13 +02:00
Fix issues in the entity creation and destruction code.
Implement a locking mechanism to prevent entities be dstroyed in mid-destruction. Also clean up properly when internal instances are deleted.
This commit is contained in:
@ -385,7 +385,8 @@ enum EventType
|
||||
enum EntityFlags
|
||||
{
|
||||
ENF_DEFAULT = (0),
|
||||
ENF_OWNED = (1 < 0)
|
||||
ENF_OWNED = (1 << 1),
|
||||
ENF_LOCKED = (2 << 1)
|
||||
};
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user