More of that VS2015 magic
This commit is contained in:
parent
c4f5b5d521
commit
8b95360709
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));
|
IInstanceObserver *observer = getEditor().getInstanceObserver((TInstanceObserverHandle) ls.toInteger(2));
|
||||||
if (observer == NULL)
|
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);
|
CInstanceObserverLua *luaObserver = dynamic_cast<CInstanceObserverLua *>(observer);
|
||||||
if (luaObserver == NULL)
|
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));
|
getEditor().removeInstanceObserver((TInstanceObserverHandle) ls.toInteger(2));
|
||||||
CLuaObject receiver = luaObserver->getReceiver();
|
CLuaObject receiver = luaObserver->getReceiver();
|
||||||
|
|
Loading…
Reference in a new issue