1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Avoid iterating over keys to generate assert message

This commit is contained in:
Bjorn Stromberg 2020-07-23 11:26:53 +09:00
parent 2df1b8d014
commit aa096e2744

View File

@ -158,7 +158,7 @@ export class AtlasSprite extends BaseSprite {
const scale = parameters.desiredAtlasScale;
const link = this.linksByResolution[scale];
assert(link, "Link not known: " + scale + " (having " + Object.keys(this.linksByResolution) + ")");
assert(link, "Link not known: " + scale);
const scaleW = w / link.w;
const scaleH = h / link.h;