Error report has incorrect name (#354)

Thanks to Milo for catching this one.
master
phkb 2020-07-23 03:37:42 +10:00 committed by GitHub
parent 8d0184346d
commit 4e97ce79d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ static JSBool GlobalRandomInhabitantsDescription(JSContext *context, uintN argc,
if (argc > 0 && !JS_ValueToBoolean(context, OOJS_ARGV[0], &isPlural))
{
OOJSReportBadArguments(context, nil, @"displayNameForCommodity", 1, OOJS_ARGV, nil, @"boolean");
OOJSReportBadArguments(context, nil, @"randomInhabitantDescription", 1, OOJS_ARGV, nil, @"boolean");
return NO;
}