mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 10:06:42 +00:00
[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";
|
sstr << "hash\n";
|
||||||
for(size_t i = 0; i < checksumsResponse.size(); i++)
|
for(size_t i = 0; i < checksumsResponse.size(); i++)
|
||||||
{
|
{
|
||||||
printWithWidth(sstr, checksums[i].first, pluginNameLen1 + 2);
|
string plugin;
|
||||||
printWithWidth(sstr, intToHexStr(checksums[i].second[0]), 14);
|
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);
|
printWithWidth(sstr, checksumsResponse[i].first, pluginNameLen2 + 2);
|
||||||
if(checksumsResponse[i].second.size() > 0)
|
if(checksumsResponse[i].second.size() > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue