https://github.com/libsdl-org/Maelstrom/commit/5b1e2a631308e090a167a1a3608ec2c66724e498
From 5b1e2a631308e090a167a1a3608ec2c66724e498 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 11 Nov 2012 01:01:37 -0800
Subject: [PATCH] Fixed template lookup
---
screenlib/UITemplates.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/screenlib/UITemplates.cpp b/screenlib/UITemplates.cpp
index b9676e9b..9c3c0aab 100644
--- a/screenlib/UITemplates.cpp
+++ b/screenlib/UITemplates.cpp
@@ -143,7 +143,7 @@ int
UITemplates::HashTable_KeyMatch(const void *_a, const void *_b, void *data)
{
const HashKey *a = static_cast<const HashKey *>(_a);
- const HashKey *b = static_cast<const HashKey *>(_a);
+ const HashKey *b = static_cast<const HashKey *>(_b);
return SDL_strcasecmp(a->type, b->type) == 0 &&
SDL_strcasecmp(a->name, b->name) == 0;