Skip to content

Instantly share code, notes, and snippets.

@SamuXarick
Created February 15, 2023 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SamuXarick/2d7aa7f0a5ef0ab7b575d3c070ab63ec to your computer and use it in GitHub Desktop.
Save SamuXarick/2d7aa7f0a5ef0ab7b575d3c070ab63ec to your computer and use it in GitHub Desktop.
strings don't match?
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