1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Make expectedDay in plugin in 1 to 31 range.

This commit is contained in:
Ted John
2023-04-17 21:44:58 +01:00
parent 00eb2aae95
commit 83bf0d7dce

View File

@@ -145,7 +145,7 @@ namespace OpenRCT2::Scripting
{
if (gResearchProgressStage == RESEARCH_STAGE_INITIAL_RESEARCH || gResearchExpectedDay == 255)
return ToDuk(_context, nullptr);
return ToDuk(_context, gResearchExpectedDay);
return ToDuk(_context, gResearchExpectedDay + 1);
}
DukValue lastResearchedItem_get() const