mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 12:15:39 +00:00
Charmaps cannot map an empty string (#1486)
This commit is contained in:
1 parent
81ab133566
commit
44332ff4be
3 files changed
+12
No files matched your search
@@ -105,6 +105,11 @@ void charmap_Pop() {
|
||||
}
|
||||
|
||||
void charmap_Add(std::string const &mapping, std::vector<int32_t> &&value) {
|
||||
if (mapping.empty()) {
|
||||
error("Cannot map an empty string\n");
|
||||
return;
|
||||
}
|
||||
|
||||
Charmap &charmap = *currentCharmap;
|
||||
size_t nodeIdx = 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user