diff options
| author | physcik <mynameisgennadiy@vk.com> | 2026-03-27 13:52:07 +0500 |
|---|---|---|
| committer | physcik <mynameisgennadiy@vk.com> | 2026-03-27 13:52:07 +0500 |
| commit | 3f6bf25f2ed5fc5626c46a4218cc1d627ec401c2 (patch) | |
| tree | 8b88396f92d14c3e00cb8b53daafd20467c5151f /engine/Components/TextureManager.go | |
| parent | a225dc34f112d58eb98688b102f450fa14381b8a (diff) | |
String() error fix
Diffstat (limited to 'engine/Components/TextureManager.go')
| -rw-r--r-- | engine/Components/TextureManager.go | 3 |
1 files changed, 1 insertions, 2 deletions
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) } |
