forked from teamnwah/openmw-tes3coop
[Client] Fix segmentation fault
This commit is contained in:
parent
ccae9590cc
commit
afcf5a7fc8
1 changed files with 14 additions and 2 deletions
|
@ -80,8 +80,20 @@ string comparePlugins(PacketPreInit::PluginContainer checksums, PacketPreInit::P
|
|||
sstr << "hash\n";
|
||||
for(size_t i = 0; i < checksumsResponse.size(); i++)
|
||||
{
|
||||
printWithWidth(sstr, checksums[i].first, pluginNameLen1 + 2);
|
||||
printWithWidth(sstr, intToHexStr(checksums[i].second[0]), 14);
|
||||
string plugin;
|
||||
unsigned val;
|
||||
try
|
||||
{
|
||||
plugin = checksums.at(i).first;
|
||||
val = checksums.at(i).second[0];
|
||||
}
|
||||
catch(exception &e)
|
||||
{
|
||||
plugin = "null";
|
||||
val = 0;
|
||||
}
|
||||
printWithWidth(sstr, plugin, pluginNameLen1 + 2);
|
||||
printWithWidth(sstr, intToHexStr(val), 14);
|
||||
printWithWidth(sstr, checksumsResponse[i].first, pluginNameLen2 + 2);
|
||||
if(checksumsResponse[i].second.size() > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue