mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-15 22:08:43 +00:00
More of that VS2015 magic
This commit is contained in:
parent
3f4cad0795
commit
045cde5eb0
3 changed files with 8 additions and 8 deletions
|
@ -1957,12 +1957,12 @@ int CEditor::luaRemoveInstanceObserver(CLuaState &ls)
|
|||
IInstanceObserver *observer = getEditor().getInstanceObserver((TInstanceObserverHandle) ls.toInteger(2));
|
||||
if (observer == NULL)
|
||||
{
|
||||
CLuaIHM::fails(ls, "Instance observer not found for handle = %d"NL_I64, ls.toInteger(2));
|
||||
CLuaIHM::fails(ls, "Instance observer not found for handle = %" NL_I64 "d", ls.toInteger(2));
|
||||
}
|
||||
CInstanceObserverLua *luaObserver = dynamic_cast<CInstanceObserverLua *>(observer);
|
||||
if (luaObserver == NULL)
|
||||
{
|
||||
CLuaIHM::fails(ls, "Instance observer found for handle %d"NL_I64", but has bad type, it wasn't registered from lua.", ls.toInteger(2));
|
||||
CLuaIHM::fails(ls, "Instance observer found for handle %" NL_I64 "d, but has bad type, it wasn't registered from lua.", ls.toInteger(2));
|
||||
}
|
||||
getEditor().removeInstanceObserver((TInstanceObserverHandle) ls.toInteger(2));
|
||||
CLuaObject receiver = luaObserver->getReceiver();
|
||||
|
|
Loading…
Reference in a new issue