]> git.lizzy.rs Git - mtmap.git/commitdiff
Merge pull request #2 from ev2-1/master master
authorElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>
Sat, 16 Jul 2022 23:21:13 +0000 (01:21 +0200)
committerGitHub <noreply@github.com>
Sat, 16 Jul 2022 23:21:13 +0000 (01:21 +0200)
Change index in Peek and Poke node to uint16

tools.go

index 8e4f35ac55b465e2bd98491ae4f89923a0a91f1a..bd4de746518077ca822bdcbbfa31fe32f6803e24 100644 (file)
--- a/tools.go
+++ b/tools.go
@@ -4,7 +4,7 @@ import (
        "github.com/anon55555/mt"
 )
 
-func (mb *MapBlk) PeekNode(i int) mt.Node {
+func (mb *MapBlk) PeekNode(i uint16) mt.Node {
        return mt.Node{
                Param0: mb.Param0[i],
                Param1: mb.Param1[i],
@@ -12,7 +12,7 @@ func (mb *MapBlk) PeekNode(i int) mt.Node {
        }
 }
 
-func (mb *MapBlk) PokeNode(i int, node mt.Node) {
+func (mb *MapBlk) PokeNode(i uint16, node mt.Node) {
        mb.Param0[i] = node.Param0
        mb.Param1[i] = node.Param1
        mb.Param2[i] = node.Param2