cache: use LinkedHashMap for switch jump tables
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.cache.definitions.loaders;
|
package net.runelite.cache.definitions.loaders;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import net.runelite.cache.definitions.ScriptDefinition;
|
import net.runelite.cache.definitions.ScriptDefinition;
|
||||||
import net.runelite.cache.io.InputStream;
|
import net.runelite.cache.io.InputStream;
|
||||||
@@ -61,7 +61,7 @@ public class ScriptLoader
|
|||||||
|
|
||||||
for (int i = 0; i < numSwitches; ++i)
|
for (int i = 0; i < numSwitches; ++i)
|
||||||
{
|
{
|
||||||
switches[i] = new HashMap<>();
|
switches[i] = new LinkedHashMap<>();
|
||||||
|
|
||||||
int count = in.readUnsignedShort();
|
int count = in.readUnsignedShort();
|
||||||
while (count-- > 0)
|
while (count-- > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user