View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0026573||Runner||[All Projects] General||Public||2017-05-19 08:54||2017-08-08 15:59|
|Reporter||Daniel Cleaton||Assigned To||Daniel Cleaton|
|Priority||Medium||Severity||C - General||Reproducibility||100%|
|Platform||-||OS||Windows 10||OS Version||Pro x64|
|Target Version||Fixed in Version|
|Summary||0026573: Compiling: instance_create_depth() should throw a compile error when passed a string for the depth value|
|Description||instance_create_depth() should throw a compile error when passed a string for the depth value. Right now, it allows the string, but this is invalid in the runner, and so your whole game is drawn as a black screen.|
|Steps To Reproduce||1. Import the attached sample.|
2. Run it for Windows.
3. Observe no compile errors, but game just draws a black screen/nothing.
4. Swap out the code in the tank object's Create event and run the game again and observe it is fixed now.
|1.4 Found In|
|2.x Runtime Found In||188.8.131.52|
|2.x Runtime Verified In|
TanksPrototype.yyz (20,231 bytes)
||Won't throw a compile error, but could throw a runtime one.|
||Looking at what the code does internally it'll actually try to convert a string to a number - i.e. it'll convert "100" to the actual numerical value. I'm not sure if that's what we actually want but I suppose it's not technically 'wrong'. It does mean that if we want to maintain that functionality I can't just do a string check and throw an error.|