mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 03:02:06 +00:00
Allow charmap creation even if its base doesn't exist
This commit is contained in:
@@ -67,11 +67,9 @@ struct Charmap *charmap_New(const char *name, const char *baseName)
|
|||||||
if (baseName != NULL) {
|
if (baseName != NULL) {
|
||||||
struct Charmap **ppBase = charmap_Get(baseName);
|
struct Charmap **ppBase = charmap_Get(baseName);
|
||||||
|
|
||||||
if (*ppBase == NULL) {
|
if (*ppBase == NULL)
|
||||||
yyerror("Base charmap '%s' doesn't exist", baseName);
|
yyerror("Base charmap '%s' doesn't exist", baseName);
|
||||||
return NULL;
|
else
|
||||||
}
|
|
||||||
|
|
||||||
pBase = *ppBase;
|
pBase = *ppBase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user