Repair is type in list (#10229)

Using isnum is unreliable for detecting nonstandard formats of already associative lists. Causing them to be overriden with the type cache.

Checking isnull instead will allow us to detect strings, numbers, lists, typepaths, basically everything that we want to check to make sure this isn't already an associative list.

Fixes #10225
Fixes #10224
This commit is contained in:
clusterfack
2016-05-27 14:53:47 -05:00
parent 0893e93e4d
commit a13c6c9fcb
2 changed files with 13 additions and 4 deletions

View File

@@ -13,6 +13,7 @@
#define PROFILE_MACHINES // Disable when not debugging.
#define ARBITRARILY_LARGE_NUMBER 10000 //Used in delays.dm and vehicle.dm. Upper limit on delays
#define MAX_VALUE 65535
#ifdef PROFILE_MACHINES
#define CHECK_DISABLED(TYPE) if(disable_##TYPE) return