Fix text objects limit

This commit is contained in:
Alexander Batalov 2022-05-20 10:18:50 +03:00
parent 8565a55540
commit 5e82f600af

View File

@ -140,7 +140,8 @@ int textObjectAdd(Object* object, char* string, int font, int color, int a5, Rec
return -1;
}
if (gTextObjectsCount >= TEXT_OBJECTS_MAX_COUNT - 1) {
// SFALL: Fix incorrect value of the limit number of floating messages.
if (gTextObjectsCount >= TEXT_OBJECTS_MAX_COUNT) {
return -1;
}