WINTERMUTE: Correct spelling mistake

refrence -> reference
This commit is contained in:
Hubert Maier 2022-10-27 13:10:21 +02:00 committed by Eugene Sandulenko
parent 0f2d69edef
commit ca0ca397a5
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -1557,14 +1557,14 @@ bool AdActor3DX::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisSta
stack->correctParams(1);
ScValue *val = stack->pop();
if (!val->isNative()) {
script->runtimeError("actor.%s method accepts an entity refrence only", name);
script->runtimeError("actor.%s method accepts an entity reference only", name);
stack->pushNULL();
return true;
}
AdObject *obj = (AdObject *)val->getNative();
if (!obj || obj->getType() != OBJECT_ENTITY) {
script->runtimeError("actor.%s method accepts an entity refrence only", name);
script->runtimeError("actor.%s method accepts an entity reference only", name);
stack->pushNULL();
return true;
}