change char print to int print

This commit is contained in:
Rochet2
2015-10-07 21:25:29 +03:00
parent 0a7ceb2602
commit 77e09b4390

View File

@@ -1193,7 +1193,7 @@ int Eluna::Register(lua_State* L, uint8 regtype, uint32 entry, uint64 guid, uint
} }
luaL_unref(L, LUA_REGISTRYINDEX, functionRef); luaL_unref(L, LUA_REGISTRYINDEX, functionRef);
std::ostringstream oss; std::ostringstream oss;
oss << "regtype " << regtype << ", event " << event_id << ", entry " << entry << ", guid " << guid << ", instance " << instanceId; oss << "regtype " << static_cast<uint32>(regtype) << ", event " << event_id << ", entry " << entry << ", guid " << guid << ", instance " << instanceId;
luaL_error(L, "Unknown event type (%s)", oss.str().c_str()); luaL_error(L, "Unknown event type (%s)", oss.str().c_str());
return 0; return 0;
} }