Engine Crash because of pointer!?!

Posted By: nightshade

Engine Crash because of pointer!?! - 12/31/07 22:45

Hello all.

SED, Engine crashes if I run following script :

Code:

ENTITY* testent;
action test_ent {
testent = me;
}

int zahl = 2;

int main() {
...
if (zahl == 2) {
testent.x = 55;
}
...



It crashes this way, but
if I try to do printf("hello?!?!"); instead of testent.x == 55; I get no errors. So what am I doing wrong?
Posted By: Joozey

Re: Engine Crash because of pointer!?! - 12/31/07 22:47

I think you need a wait(3); after your level_load, for your entities are not yet loaded and you run the script already.
© 2024 lite-C Forums