Hi, im trying to make a puzzle game,
im using lite-C free, version 1.70

im getting a message box that says "Crash on mover1",
when i try to clone an entity, and then modify any attibute of the cloned entity.
Can anybody tell me what is wrong?


this is the code:
Code:

//------------------------------------------------------------------------------
// test_clone.c
//------------------------------------------------------------------------------
#include <acknex.h>
#include <default.c>


action mover1()
{
	
	while(1)
	{
		my.y+=time_step;
		wait(1);
	}
}


void main()
{
	level_load("sueloenraya.hmp");
	ENTITY* e1;
	ENTITY* e2;
	e1=ent_create("bola_simple32.mdl",vector(0,0,20),mover1);
	e2=ent_cloneskin(e1);
	e2.z=40;
	
	while(1)
	{
		wait(1);
	}
	
}


The level and the model e1 are ok. When i clone the entity, nothing happens, but when i try to modigy e2.x, a message box appears "Crash in mover1"

Thanks!