Wintermute Engine Forum

Wintermute Engine => Bug reports => Topic started by: metamorphium on January 22, 2014, 02:18:20 PM

Title: Engine crash - script trigger
Post by: metamorphium on January 22, 2014, 02:18:20 PM
Hi.

I have encountered a replicable script crash (in case it was worth something):

In Scene Edit attach custom property to a region and call it IdObelisk with value 1

This code works flawlessly:

Code: WME Script
  1. global salia4_obelisksScanned;
  2. var id = ToInt(this.IdObelisk);
  3. salia4_obelisksScanned[id] = true;
  4.  


This code desktop crashes WME:

Code: WME Script
  1. global salia4_obelisksScanned;
  2.  
  3. salia4_obelisksScanned[ToInt(this.IdObelisk)] = true;
  4.  
  5.