Fixed compiler warning.

This commit is contained in:
hiker 2015-08-18 16:54:55 +10:00
parent 2330624ccb
commit f8f0c4e4e4

View File

@ -310,7 +310,7 @@ void TrackObject::onWorldReady()
fn_signature << "bool " << fn_name << "(";
for (int i = 0; i < arguments.size(); i++)
for (unsigned int i = 0; i < arguments.size(); i++)
{
if (i > 0)
fn_signature << ",";
@ -328,7 +328,7 @@ void TrackObject::onWorldReady()
script_engine->runFunction(true, fn_signature.str(),
[&](asIScriptContext* ctx)
{
for (int i = 0; i < arguments.size(); i++)
for (unsigned int i = 0; i < arguments.size(); i++)
{
ctx->SetArgObject(i, &arguments[i]);
}