-
-
Save SamuXarick/2d7aa7f0a5ef0ab7b575d3c070ab63ec to your computer and use it in GitHub Desktop.
strings don't match?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LeagueTable extends GSController | |
{ | |
tables = array(2, { name = "", id = null, el = array(GSCompany.COMPANY_LAST), val = {}, pct = {} }); | |
names = [ | |
"company_value_table", | |
"most_profitable_vehicle", | |
]; | |
constructor() { | |
foreach (i, name in this.names) { | |
this.tables[i].name = name; | |
GSLog.Info("i = " + i + "; name = " + name + "; this.tables[i].name = " + this.tables[i].name); | |
} | |
foreach (i, name in this.names) { | |
GSLog.Info("i = " + i + "; name = " + name + "; this.tables[i].name = " + this.tables[i].name); | |
assert(this.tables[i].name == name); // names don't match?! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment