repeat until

Report core bugs regarding the Ultima Online Emulator Core release (version 097). You can attach your Core Dump. One bug per post.
Locked
mr bubbles
Grandmaster Poster
Posts: 120
Joined: Thu Jan 18, 2007 2:34 am

repeat until

Post by mr bubbles »

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: Select all

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

repeat

until (test1 == test2)
will crash the server while..

Code: Select all

repeat

until (2 == 2)
works fine.

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

Thanks.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

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.
mr bubbles
Grandmaster Poster
Posts: 120
Joined: Thu Jan 18, 2007 2:34 am

Post by mr bubbles »

This was the latest release. Can anyone else confirm this?
mr bubbles
Grandmaster Poster
Posts: 120
Joined: Thu Jan 18, 2007 2:34 am

Post by mr bubbles »

Umm my mistake, I don't know what i was smoking :( 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.
Locked