Wintermute Engine Forum

Wintermute Engine => WME Lite => Bugs => Topic started by: metamorphium on August 26, 2011, 03:19:47 PM

Title: Bug with String object
Post by: metamorphium on August 26, 2011, 03:19:47 PM
Hi Mnemonic,

I have the following code:

Code: WME Script
  1. on "LeftClick"
  2. {
  3.                 var str = new String(this.Name);
  4.                
  5.                 var name = str.Substr(3);
  6.  
  7.                 Game.Msg("Name:" + str + " Region:" + name);
  8.                
  9.                 Scene.RegionClicked(name);
  10. }
  11.  

On WME it shows eg.:

Name: Reg19
Region: 19

on WME lite it shows:
Name: Reg19
Region:


It seems that the string logic hasn't been implemented. Any advice, or should I change this logic in the game?

Thank you!



Title: Re: Bug with String object
Post by: metamorphium on August 26, 2011, 05:56:24 PM
Just for the records. Fixed in the latest svn commit.