Update src/script/cpp_api/s_base.cpp

Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
This commit is contained in:
Zughy 2024-12-29 11:24:11 +00:00 committed by GitHub
parent 328c565b4e
commit ddbcb8b9e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -432,7 +432,7 @@ void ScriptApiBase::setOriginFromTableRaw(int index, const char *fxn)
/*
* How ObjectRefs are handled in Lua:
* When an active object is created, an ObjectRef is created on the Lua side
* and stored in core.object_refs[id] and in core.objects_by_guids[[GUID].
* and stored in core.object_refs[id] and in core.objects_by_guids[GUID].
* Methods that require an ObjectRef to a certain object retrieve it from that
* table instead of creating their own.(*)
* When an active object is removed, the existing ObjectRef is invalidated