mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-01 06:27:11 +02:00
Adjust the code to use the .what() method from the Sqrat exception.
This commit is contained in:
@ -51,7 +51,7 @@ SQRESULT SqGrabPlayerMessageColor(HSQUIRRELVM vm, Int32 idx, Uint32 & color, Int
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
}
|
||||
// The message starts right after the color
|
||||
@ -328,7 +328,7 @@ static SQInteger SqBroadcastMsgP(HSQUIRRELVM vm)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
|
||||
// Perform a range check on the specified prefix index
|
||||
@ -421,7 +421,7 @@ static SQInteger SqBroadcastMsgEx(HSQUIRRELVM vm)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
|
||||
// Perform a range check on the specified prefix index
|
||||
@ -637,7 +637,7 @@ static SQInteger SqBroadcastAnnounceEx(HSQUIRRELVM vm)
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
return sq_throwerror(vm, e.Message().c_str());
|
||||
return sq_throwerror(vm, e.what());
|
||||
}
|
||||
|
||||
// Attempt to generate the string value
|
||||
|
Reference in New Issue
Block a user