From 3f6bf25f2ed5fc5626c46a4218cc1d627ec401c2 Mon Sep 17 00:00:00 2001 From: physcik Date: Fri, 27 Mar 2026 13:52:07 +0500 Subject: String() error fix --- engine/Components/TextureManager.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engine/Components/TextureManager.go') diff --git a/engine/Components/TextureManager.go b/engine/Components/TextureManager.go index 27449b1..eac1898 100644 --- a/engine/Components/TextureManager.go +++ b/engine/Components/TextureManager.go @@ -7,7 +7,6 @@ import ( rl "github.com/gen2brain/raylib-go/raylib" ) - type TextrueManager struct { Textures []*rl.Texture2D NameToId map[string]uint64 @@ -48,7 +47,7 @@ func (base *TextrueManager) GetTextureByName(textureName string) (*rl.Texture2D, func (base *TextrueManager) String() string { var outp, jsonErr = json.Marshal(base) if jsonErr != nil { - return fmt.Sprintf("Failed to parse settings: %s", jsonErr.Error()) + return fmt.Sprintf("Failed to parse texture manager: %s", jsonErr.Error()) } return string(outp) } -- cgit v1.3