PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
repeat until

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 097
Display posts from previous:   

Author Message
mr bubbles



Joined: 18 Jan 2007
Posts: 91

PostPosted: Tue Aug 21, 2007 7:39 am    Post subject: repeat until Reply with quote

Just found a bug with using the repeat until method.

If you use a variable in the until argument it will crash the server.

for example

Code:
var test1 := 2;
var test2 := 2;

repeat

until (test1 == test2)


will crash the server while..

Code:
repeat

until (2 == 2)


works fine.

Using something like until (char.name == char.name) was fine, just seems to hate variables.

Thanks.

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Wed Aug 22, 2007 12:01 am    Post subject: Reply with quote

Mr. Bubbles,

Which RC version has this been tested with? I tested under RC3 and no crash. For some reason that I can't remember now, I have avoided using the latest RC.

Author Message
mr bubbles



Joined: 18 Jan 2007
Posts: 91

PostPosted: Wed Aug 22, 2007 10:18 pm    Post subject: Reply with quote

This was the latest release. Can anyone else confirm this?

Author Message
mr bubbles



Joined: 18 Jan 2007
Posts: 91

PostPosted: Thu Aug 23, 2007 5:46 am    Post subject: Reply with quote

Umm my mistake, I don't know what i was smoking Sad I think i must have declared the variable INSIDE the repeat loop :/

Guess its not a bug, but maybe a variable that gets declared inside a loop that is used in the exit condition should get caught in the compiler instead of crashing.

I hate when I make stupid mistakes like this, sorry.

Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 097 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty