"Action list must end with a return statement" bugged

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: "Action list must end with a return statement" bugged

Re: "Action list must end with a return statement" bugged

by randi » Fri Feb 19, 2016 4:44 pm

Re: "Action list must end with a return statement" bugged

by Fishytza » Fri Feb 19, 2016 1:52 pm

Yup, crashes for me too.

Re: "Action list must end with a return statement" bugged

by Major Cooke » Fri Feb 19, 2016 1:02 pm

Does it crash for you if you did just TNT1 A 0 { } without anything inside of it? May be correlated.

It crashes for me.

"Action list must end with a return statement" bugged

by Fishytza » Fri Feb 19, 2016 10:33 am

"Action list must end with a return statement" is the error message you will get if you define something like:

Code: Select all

Actor Test
{
	States
	{
	Spawn:
		TROO A 20
		TNT1 A 0
		{
			if( randompick(0,1) == 1 )
			{
				A_Log("jumping");
				return A_State("Skok");
			}
			A_Log("not jumping");
		}
		Stop
	Skok:
		VILE A 20
		Stop
	}
}
The problem is when you remove 'A_Log("not jumping");' then there is no error message and ZDoom starts up normally.
If you spawn this actor (again without A_Log("not jumping");) and the if condition is not met then ZDoom will crash.

Top