cache: use LinkedHashMap for switch jump tables

This commit is contained in:
Joshua Filby
2022-03-27 23:51:10 -05:00
parent 0609c246a5
commit 71da8bc35e

View File

@@ -24,7 +24,7 @@
*/
package net.runelite.cache.definitions.loaders;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import net.runelite.cache.definitions.ScriptDefinition;
import net.runelite.cache.io.InputStream;
@@ -61,7 +61,7 @@ public class ScriptLoader
for (int i = 0; i < numSwitches; ++i)
{
switches[i] = new HashMap<>();
switches[i] = new LinkedHashMap<>();
int count = in.readUnsignedShort();
while (count-- > 0)