mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-29 23:15:56 -04:00
set these back to the way they were, so they hopefully don't bug out - may need to add .c_str() somewhere too
This commit is contained in:
@@ -1793,7 +1793,7 @@ void CreatureObject::initializeFirstTimeObject()
|
||||
std::string creature = getTemplateName();
|
||||
|
||||
WARNING_STRICT_FATAL(!getDefaultWeapon(), ("Creature %s (%s) has no default "
|
||||
"weapon", getNetworkId().getValueString().c_str(), creature));
|
||||
"weapon", getNetworkId().getValueString().c_str(), getTemplateName()));
|
||||
}
|
||||
|
||||
const ServerCreatureObjectTemplate * myTemplate = safe_cast<const ServerCreatureObjectTemplate *>(getObjectTemplate());
|
||||
@@ -3019,9 +3019,7 @@ void CreatureObject::initializeDefaultWeapon()
|
||||
ServerWeaponObjectTemplate const *weaponTemplate = myTemplate->getDefaultWeapon();
|
||||
if (weaponTemplate == NULL)
|
||||
{
|
||||
std::string creature = getTemplateName();
|
||||
|
||||
WARNING(true, ("Creature template %s has no valid default weapon!", creature));
|
||||
WARNING(true, ("Creature template %s has no valid default weapon!", getTemplateName()));
|
||||
|
||||
// try to use the fallback weapon
|
||||
weaponTemplate = dynamic_cast<ServerWeaponObjectTemplate const *>(ObjectTemplateList::fetch(ConfigServerGame::getFallbackDefaultWeapon()));
|
||||
|
||||
Reference in New Issue
Block a user